Commit graph

109 commits

Author SHA1 Message Date
Richard Goedeken
5252954ce7 improved input setup behavior (auto-config) by checking SDL joystick name for match in configuration parameters before accepting stored config. Also, do not re-load a stored Keyboard configuration that was auto-generated. These changes should resolve most of the trouble that users have been reporting with the input setup over the last year 2011-12-12 00:22:42 -08:00
Narann
82c5404ee6 A little "move to top" in some variable declarations to make MSVC compile! 2011-07-05 12:18:00 +02:00
Sven Eckelmann
1bdd4ebbfc Don't use plain 0 for pointers 2011-06-25 23:19:12 +02:00
Sven Eckelmann
5ec17510e1 Mark local only functions as static 2011-06-25 23:11:00 +02:00
Sven Eckelmann
9a1fa64a27 Use function prototypes defined by core 2011-06-25 21:23:47 +02:00
Richard Goedeken
3558845e85 updated input plugin for new Mupen64plus 2.0 API versioning scheme 2011-05-16 21:47:38 -07:00
Richard Goedeken
1f651296b5 1. new parameter for mouse sensitivity. 2. handle mouse movement translation to joystick differently: store sum of relative motions, and exponentially decay the sum values 2011-04-09 22:21:40 -07:00
Richard Goedeken
9270a108ad bugfix: correctly handle USB devices with multiple game pads, from Peter Helbing 2010-11-23 21:32:44 -05:00
Richard Goedeken
ac17e05a18 updated version and RELEASE info for 1.99.4 tag 2010-11-22 21:02:39 -05:00
Richard Goedeken
3da5ddefd5 bugfix: we need to get BOOL type parameters for 'plugged' and 'mouse' 2010-10-02 22:16:22 -04:00
Richard Goedeken
b5d9d361a0 Do configuration setup during PluginStart() function call, so that GUI will see defaults (auto-configured) the first time it is run. We will still do configuration during every game startup as well (InitiateControllers) 2010-09-27 22:50:09 -04:00
Sven Eckelmann
352e1b8701 Move axis value reducers to right shift and right ctrl
The maximum value for an axis can be reduced by pressing shift or ctrl. The
left shift and ctrl are used for the buttons A and B at the same time. So we
must move the reducers to different buttons to fix the weird controller
behavior.
2010-06-07 20:47:30 +02:00
Sven Eckelmann
b3ab37132b Add missing header 2010-03-04 23:30:39 +01:00
Richard Goedeken
341d45f31d Support extra deadzone parameter in axis() config parameter clause when mapping an analog joystick axis to an N64 button 2010-02-26 23:49:14 -05:00
Richard Goedeken
5fe9d2e7c3 update RELEASE file and version info for 1.99.3 tag 2010-02-13 16:45:29 -05:00
Richard Goedeken
512d6b39ec bugfix issue 321: the controller info was only synced once at startup time, so the core was never notified of pak changes. This resulted in the user being unable to actually switch between mem/rumble paks while playing, and caused other negative side effects as well 2010-02-03 00:14:05 -05:00
GoedekenR
5b8639d58d fixed MSVC8 warning by removing unused variable 2010-01-20 23:40:58 -05:00
Richard Goedeken
838ed1328f added correct OSX names for the Xbox 360 and PS3 controllers, from issue #312 2010-01-19 21:03:32 -05:00
Richard Goedeken
d1e26f7bd9 refactored auto-configuration feature so that it uses an .ini file now instead of hard-coding the controllers in the source code. 2010-01-18 21:02:18 -05:00
Richard Goedeken
43813f65eb sync with core<-->plugin API change for RomOpen() 2010-01-11 23:07:27 -05:00
richard42
10d945f395 bugfix: syntax problem in RD_READPAK, replaced the DataCRC write for RD_WRITEPAK (apparently the ROM code expects this to be there) and fixed the memory corruption bug by increasing the command buffer size in the core lib 2010-01-09 10:21:44 -05:00
Richard Goedeken
17f1d49189 bugfix: in RD_WRITEPAK case of ControllerCommand() function, the only purpose is to send a rumble on/off command. But the Data[32] = ... expression caused a write past the end of an array in the core, corrupting memory. This statement is apparently unnecessary and causes a bug, so it has been removed 2010-01-09 00:00:41 -05:00
Richard Goedeken
74607a77ba Updated RELEASE and version info for 1.99.2 tag 2010-01-06 23:31:07 -05:00
Richard Goedeken
1484c5f8b4 added auto-configuration for Jess Tech Dual Analog Pad from daoo (daoo314@gmail.com) 2010-01-02 20:45:59 -05:00
GoedekenR
a4c6f97726 Merge Win32 changes with recent PS3 controller addition 2010-01-02 16:27:23 -05:00
GoedekenR
fcabf9eea7 Changed default keys for A and B buttons to Ctrl/Shift instead of Alt/Meta because Windows cant handle Alt/Meta
minor code refactoring for MSVC compiler; can't handle C99 data definitions in the middle of {} blocks
Added MSVC8 project file
2010-01-02 16:25:25 -05:00
Richard Goedeken
5e3a243cf7 added README info for PS3 controller and moved code around a little 2010-01-01 20:51:27 -05:00
Richard Goedeken
f3b02ffd04 added autoconfiguration for PS3 controller from red (darth.bigred@googlemail.com) 2010-01-01 20:39:57 -05:00
Richard Goedeken
04db7bf869 added auto-configuration for Xbox 360 Wireless Receiver from Joe (tgblb1@gmail.com) 2009-12-18 17:15:54 -05:00
Richard Goedeken
e1160b5ad1 update version number to 1.99.1 2009-12-11 23:44:18 -05:00
Richard Goedeken
bd5222976b added auto-configuration information for Boom SmartJoy USB converter (with N64 controller) from sean@seanhayes.name 2009-11-24 07:50:22 -05:00
Richard Goedeken
98518eabbb added auto-configuration for Gasia Co.,Ltd PS(R) Gamepad from (olejl77@gmail.com) 2009-11-23 20:58:05 -05:00
Richard Goedeken
f8aadfea22 added auto-configuration for DragonRise Inc. Generic USB Joystick from Tillmann (gtillmann@gmail.com) 2009-11-23 20:43:58 -05:00
Richard Goedeken
6db2662211 removed unused osal_dynlib functions 2009-11-21 14:19:45 -05:00
Richard Goedeken
54b1c17fde fixed gcc warnings from upgraded compiler (4.3.4) 2009-11-19 23:37:57 -05:00
Richard Goedeken
1fa93420cd update Saitek P990 default config from Matthieu Rogez <matthieu.rogez@gmail.com> 2009-11-15 22:42:11 -05:00
Richard Goedeken
d98d5cdfdd add autoconfig.h/c files 2009-11-15 20:52:16 -05:00
Richard Goedeken
9800db3960 moved auto-configuration stuff into its own source file 2009-11-15 20:48:46 -05:00
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