Commit graph

472 commits

Author SHA1 Message Date
Richard Goedeken
959e6ed1f1 added auto-configuration for 'Saitek P990 Dual Analog Pad' from matthieu.rogez@gmail.com 2009-11-13 21:08:18 -05:00
Richard Goedeken
1947963355 added the DEVICE_NOT_JOYSTICK device type back into the input plugin. This will force the input plugin to use the stored configuration, but a joystick will not be associated with this controller. This can be used for pure keyboard/mouse controls, or for forcing controllers to be plugged in for the reg test. Note that keyboard/mouse inputs can also be bound to controllers using joysticks 2009-11-12 23:48:05 -05:00
Richard Goedeken
e57250a66b added default configuration for GreenAsia Inc. USB Joystick 2009-11-12 23:10:51 -05:00
Richard Goedeken
a4c265f490 Make auto-configured joysticks include a Memory Pak (instead of None), use auto-configuration even if a controller had a config section but was disabled (with device=DEVICE_NONE) 2009-11-10 22:54:56 -05:00
Richard Goedeken
5b58005650 added default keyboard configuration if no joysticks were found 2009-11-08 23:06:31 -05:00
Richard Goedeken
3d22d8ded3 bugfix in config parser when reading hat(), removed trailing spaces when writing config 2009-11-07 10:26:00 -05:00
Richard Goedeken
dfbcbc9cb9 added controller auto-config for: 'Mega World USB Game Controllers' 2009-11-06 19:13:51 -05:00
Richard Goedeken
f537af1e48 just a little cleanup after testing the keyboard input. everything seems to be working 2009-11-04 22:36:23 -05:00
Richard Goedeken
4ab92c047b cleaned up mouse motion handling code. There is still a problem with this code because the main event loop in the core may snatch the mouse events before this one gets them. If the core code is changed to only get key events, the message queue may fill up with mouse messages if the dummy input plugin is used. somebody should find a fix for this; it may be necessary to pass mouse movement messages into the plugin from the core 2009-11-04 22:18:05 -05:00
Richard Goedeken
b0adb55d0d bugfix: in GetKeys(), mapping the X/Y analog sticks to keypresses didn't work because the value from doSdlKeys() was being overwritten in the for(b=0;b<2;b++) loop. Now it works 2009-11-04 22:02:05 -05:00
Richard Goedeken
58102c393e increased the dead zone, fixed the LeftCtrl-LeftAlt key command when mouse is enabled to correctly toggle between grabbing and releasing the mouse pointer 2009-11-04 20:52:01 -05:00
Richard Goedeken
9984153103 take into account the deadzone and peak scaling parameters when reading the analog axis 2009-11-03 23:11:48 -05:00
Richard Goedeken
a26e869e96 trying to bring a little sanity to the analog axis handling code. X should come before Y, and 0-->X while 1-->Y for all cases now 2009-11-03 22:50:52 -05:00
Richard Goedeken
b12d7fcc01 removed some unnecessary #includes and a local variable configdir[] 2009-11-03 19:52:06 -05:00
Richard Goedeken
0493f9d1d1 added auto-configure support for 3 more joysticks 2009-11-02 23:01:40 -05:00
Richard Goedeken
3f74865985 improved debug/info messaging when loading controller configurations 2009-11-02 21:16:39 -05:00
Richard Goedeken
b28198fb48 Completely re-wrote configuration save/load code to use Core Config API. Added feature to detect attached joystick and auto-configure settings. Added deadzone/scaling parameters to configuration 2009-11-02 00:01:52 -05:00
Richard Goedeken
1e0460a35a added new M64+ API v2.0 functions, converted all printf() calls to use Debug message callback to front-end. 2009-10-31 15:16:00 -04:00
Richard Goedeken
ebf0a7fbce removed old API headers, switched to new core headers. Removed non-standard C types 2009-10-31 14:35:15 -04:00
Richard Goedeken
e005526706 removed old GUI functions 2009-10-30 23:27:45 -04:00
Richard Goedeken
2315a539bd re-wrote makefile for current mupen64plus conventions 2009-10-30 21:12:24 -04:00
Richard Goedeken
d95bf418f4 import blight_input plugin from mupen64plus SVN repo revision 1416 2009-10-30 19:26:52 -04:00