Commit Graph
44 Commits
Author SHA1 Message Date
Steve Checkoway 125fccc33c Simplify. Don't pass the button pressed bool along. This can be derived from the level every time. 2006-09-15 08:31:53 +00:00
Steve Checkoway 5083893317 Use UCKeyTranslate if the 'uchr' resource exists. If not, fall back on the 'KCHR' resource. 2006-09-14 09:13:46 +00:00
Steve Checkoway dd0e3ce082 Cleanup. 2006-09-14 07:20:05 +00:00
Steve Checkoway 4dd57b99bd Don't hard code joystick and pump numbers. 2006-09-14 06:06:53 +00:00
Chris Danford f94566100f no character for Enter 2006-06-16 06:28:31 +00:00
Chris Danford 632ad67cdb fix some keys have ugly names in test input screen 2006-06-11 07:44:16 +00:00
Chris Danford e2eb5135e5 add international keyboard support 2006-06-11 07:12:01 +00:00
Steve Checkoway f39e79efed The last of the changes, I hope. 2006-05-14 07:04:28 +00:00
Chris Danford bf0cc13a47 Change GetDevicesAndDescriptions to fill in one vector instead of 2
Ignore changes in non-joystick devices when automapping
2006-02-27 17:51:27 +00:00
Steve Checkoway 5a916de95b Use -1 as a sentinel. 2006-02-27 00:20:18 +00:00
Steve Checkoway 0882afee6f Cleanup. 2006-02-24 21:51:31 +00:00
Steve Checkoway d396941353 Return mac keyboard strings (and also a bunch of international keyboard buttons that I don't have, can't test, and in many cases probably don't even exist. 2006-02-24 21:43:41 +00:00
Steve Checkoway c4fde125e4 Basic support for the USB pump pad. It is not HID-compliant and reports strange values when buttons are pressed and released. In particular, it claims that it's values are in the range [0,1], yet actually returns values in the range [0,3]. Also, there are two instances where releasing two buttons sends the same report (UR and MID, as well as DL and DR).
I suspect this makes it pretty much impossible to use (although the guy with the pad has the glowing report of, "and it seemed to work OK") but without actually having a pad with which to test, it's about all I can do.
2006-02-24 13:29:15 +00:00
Steve Checkoway 4199cbc9c0 Create JoystickDevices for HID game pads (untested). 2006-02-10 08:50:24 +00:00
Steve Checkoway bb9848adcc Revert. 2006-02-10 04:49:45 +00:00
Chris Danford 02786346b8 use gamepads 2006-02-09 01:53:24 +00:00
Steve Checkoway 3a669a84e6 Hot pluggable input devices on OS X. 2006-01-28 07:01:10 +00:00
Steve Checkoway dae517d250 Make sure that the run loop runs until the input handler terminates by adding a run loop source. 2006-01-27 07:33:11 +00:00
Steve Checkoway bab07ebf58 Factor out HIDDevice. 2006-01-23 03:48:03 +00:00
Steve Checkoway 92f64dc940 Device -> HIDDevice. 2006-01-23 01:37:11 +00:00
Steve Checkoway 5ea801b506 Style. 2006-01-23 01:30:38 +00:00
Chris Danford 7f821e8cfc CString -> RString 2006-01-22 01:00:06 +00:00
Steve Checkoway 9ed7548de1 Use new api. 2006-01-21 11:14:13 +00:00
Steve Checkoway d5cde8a0f7 Cleanup. 2006-01-18 09:44:30 +00:00
Steve Checkoway b362a5969f Simplify. 2006-01-14 01:04:48 +00:00
Steve Checkoway 0e366eef75 Fix compile and warnings. 2005-12-29 11:36:20 +00:00
Glenn Maynard 8f6dcdbecc blind updates (probably incomplete, since this driver differs more widely
from my code)
2005-12-28 09:14:15 +00:00
Steve Checkoway 2301565b2a Fix threaded input not actually running in the created thread. Allow nonthreaded input (by using the gui--i.e. main event loop--thread) according to PREFSMAN->m_bThreadedInput. 2005-12-27 05:55:06 +00:00
Steve Checkoway a8d0b5c9f9 Cleanup. 2005-12-19 01:32:36 +00:00
Steve Checkoway bdf4898ecb Use consistent thread names. 2005-12-15 07:18:52 +00:00
Steve Checkoway 7280c1ccb3 Simplify. 2005-10-24 13:39:10 +00:00
Steve Checkoway fcff93222e Get the product description. 2005-10-24 12:46:25 +00:00
Steve Checkoway 8310140755 Set new arbitrary values with the input handler above the sound decoder. 2005-10-24 11:40:43 +00:00
Steve Checkoway 10688caf8e Use SetThreadPrecedence(). 2005-10-24 11:21:46 +00:00
Steve Checkoway 268b4007f8 Finish InputHandler_Carbon and use it. 2005-10-19 21:12:18 +00:00
Steve Checkoway 298925586e oops. 2005-10-19 20:25:12 +00:00
Steve Checkoway 9d6b0890a5 Work on keyboard handler. Nearly there. 2005-10-19 11:23:21 +00:00
Steve Checkoway 85e0e3a1ec Prepare code for adding a KeyboardDevice by putting common code into a Device abstract class. 2005-10-18 09:00:53 +00:00
Steve Checkoway fd65b7e34e Cleanup, the carbon events aren't being dispatched so this will be done in the same way as the joysticks. 2005-10-18 07:48:02 +00:00
Steve Checkoway d070a41916 Cruft. 2005-10-17 11:53:20 +00:00
Steve Checkoway 19631fe280 Add Input thread. Remove DictValue since I managed to break it converting from a macro to a static inline function. That took about an hour to track down. 2005-10-17 11:04:31 +00:00
Steve Checkoway 944b1dd231 Cleanup. 2005-10-17 07:04:26 +00:00
Steve Checkoway 849980cf74 Uglify. Ignore 80 column rule without going too far past.
Use inline functions instead of the two macros. No other nonspacing changes.
2005-10-16 23:09:00 +00:00
Steve Checkoway a0c117cd52 Initial input manager. The HID code works (so joysticks work) but the Carbon event handler is not being called. I might need to completely remove SDL first, or I might need to use some other API.
I'd rather not do this with HID, for fairly obvious reasons.
2005-10-15 07:30:16 +00:00