Commit Graph
136 Commits
Author SHA1 Message Date
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
Glenn Maynard 491e97d0ac cleanup 2005-10-13 02:26:17 +00:00
Ben Anderson f83eb0a2ca Send key off when disabled only once. (fixes space bar not responding) 2005-10-13 01:34:06 +00:00
Ben Anderson 622293b6eb JOY_1 -> JOY_BUTTON_1 2005-09-21 21:09:27 +00:00
Renaud Lepage 83a362f22c Should've commit this one a while ago. 2005-09-19 21:20:05 +00:00
Chris Danford 6c2233fd03 JOY_1 -> JOY_BUTTON_1. I've confused DEVICE_JOY1 with JOY_1 many times. 2005-09-12 08:48:16 +00:00
Renaud Lepage eb0704bf41 Big defines patch : replace HAVE_XBOX with HAVE_XDK. In some cases where HAVE_DIRECTX was ambiguous, clarification was added. Another bug surfaced here : Who said FFMPEG was needed on xbox? In any case, investigation of ffmpeg-xbox will commence as soon as we can get SMX to boot again :) 2005-08-23 22:51:21 +00:00
Chris Danford 5351df6586 query for InputDeviceState 2005-08-20 22:49:25 +00:00
Chris Danford 456b12a555 allow InputDeviceHandlers to provide a device-specific input string for displaying 2005-08-17 07:45:54 +00:00
Chris Danford e39ae5443f correct for button 0 being reported as 32 2005-06-08 08:12:30 +00:00
Chris Danford 3eb577bff9 add mapping for delete key 2005-06-03 22:52:23 +00:00
Glenn Maynard ca24222013 fix warning 2005-05-31 06:25:28 +00:00
Ben Anderson ab49ff09b9 Likely fix compilation; follow the standard Selector setup correctly. 2005-05-26 00:35:54 +00:00
Glenn Maynard c962fa49ee style 2005-05-25 22:39:56 +00:00
Glenn Maynard cef33517ee style 2005-05-25 22:32:12 +00:00
Glenn Maynard f9192adc07 cleanup 2005-05-25 22:25:41 +00:00
Glenn Maynard 11595d2eff style fixes 2005-05-25 22:21:35 +00:00
Glenn Maynard 4ccc63fb42 static 2005-05-25 22:16:43 +00:00
Glenn Maynard 9d11f81407 cleanup 2005-05-25 22:15:11 +00:00
Glenn Maynard 8f57b9484f no ScreenManager 2005-05-25 22:12:01 +00:00
Charles Lohr 8e74fab0c1 Add: Win32 MIDI Support 2005-05-25 21:58:56 +00:00
Glenn Maynard fc9a003562 implement device descriptions in InputHandler_Linux_Joystick to fix auto-mapping 2005-05-17 21:16:36 +00:00
Glenn Maynard 9fe86706a4 fix incorrect timestamps due to InputHandler::ButtonPressed never being called 2005-05-17 21:00:28 +00:00
Glenn Maynard 8979ac38e6 warn if InputHandler::UpdateTimer is not being called 2005-05-17 20:54:58 +00:00
Glenn Maynard e1429256f3 fix InputHandler::UpdateTimer never called 2005-05-17 20:51:20 +00:00
Chris Danford fc1847ddc8 fix DeviceInputs missing timestamps 2005-05-17 18:15:48 +00:00
Chris Danford 6392984072 fix stuck keys after turning off monkey input 2005-05-17 18:14:43 +00:00
Chris Danford c1ab0fcdb3 hook up MonkeyInput and DebugLights to debug menu 2005-05-16 19:47:30 +00:00
Thad Ward 5949e5bc90 (this is possibly going to annoy some people, but..)
put all (obvious) MSVC lines in #if defined(_MSC_VER) blocks, primarilly
to allow alternative win32 compilers to be used.
2005-05-11 04:43:54 +00:00
Sean Burke aa97841930 Fix improper registration of keys from keypad, correct spacing 2005-05-04 03:44:37 +00:00
Ryan Dortmans 805524e4b9 Prevent Xbox using direct input. 2005-04-30 04:51:10 +00:00
Glenn Maynard 58aa3d2577 fix compile (does this driver even work?) 2005-04-24 03:44:56 +00:00
Steve Checkoway 47de0f1783 Yes, Darwin (and OS X) is POSIX, see
http://www.xyroth-enterprises.co.uk/posixos.htm
SDL is used on OS X for some things, but not all.
Use #if defined(...) instead of #ifdef in most of the Selector_*.h files.
2005-03-23 21:15:12 +00:00
Ben Anderson 800bbfbb70 Always process all KeyPress events before all KeyRelease events. KeyPress are more timing-sensitive, and this makes race conditions causing sticky keys a little less likely. 2005-03-17 04:40:14 +00:00
Sean Burke 37c6621bd7 A far more elegant solution, and one that allows the problem to be solved after a crash by restarting and exiting 2005-03-16 05:23:20 +00:00
Sean Burke b4132c8919 Fix repeating keyboard events 2005-03-16 03:31:20 +00:00
Ben Anderson 38ee973125 You know, I should pay attention to what cvs update is doing to the file... 2005-03-16 02:25:07 +00:00
Ben Anderson 18296126df Do things a little closer to the way SDL does them (but not much), magical hack that fixes performance issues for X11 on some (all?) systems, use variables instead of functions for Dpy and Win in X11Helper, a couple formatting tweaks. 2005-03-16 02:23:07 +00:00
Sean Burke 6abf475686 No, it wasn't misplaced, my logic was just flawed and my counting was off 2005-03-15 22:51:47 +00:00
Sean Burke 7ded8cf56e A few minor commits that are probably temporary; also a fix for a shifted KEY_ESC entry in the table that was causing the escape key not to work 2005-03-15 22:36:00 +00:00
Sean Burke 8de9688b29 A much more elegant solution for input handling in X11; can still probably do with some improvement 2005-03-15 01:32:24 +00:00
Ben Anderson e0e23c7b99 Blah... dumb little screwups revolving around X11 and SDL. 2005-03-15 00:41:05 +00:00
Ben Anderson 3b65e3f438 Remove useless Linux_tty input driver from the build as per Sean's suggestion; he's right, there's no point in having it if it requires SDL. 2005-03-15 00:36:01 +00:00
Ben Anderson 167e5aebc0 Put all the Make* functions into a single .h/.cpp file (yes, kinda like the way it was), and add Make* functions for DialogDrivers. This means there's only one object that's affected by drivers being added/removed. (Driver default changes are a little different -- 2 or 3 objects.) Also one or two minor cleanups. (note: I apparently don't know much about CVS, it appears that some files might not make it into the repository; hang tight, I'm trying to find a solution.) 2005-03-15 00:30:26 +00:00