68 Commits

Author SHA1 Message Date
Henrik Rydgård
91cb320e6f Merge pull request #6212 from thedax/win32-buildfix
Win32: fix three warnings.
2014-06-02 23:42:58 +02:00
The Dax
70e1abac08 Win32: Use CALLBACK (__stdcall) for DinputDevice::DevicesCallback. Fixes 32-bit compilation. 2014-06-02 08:28:35 -04:00
The Dax
58411136ee Remove the const int, and fix another warning. 2014-06-01 18:32:14 -04:00
The Dax
9672701743 Win32 buildfix and warning fix.
I don't know how many pads are supposed to be supported, but I went with a reasonable number until the proper amount is committed.
2014-06-01 18:25:35 -04:00
Peter Tissen
5e34dbf3fc limit Dinput devices to the max supported in input_state and update the native submodule to get the MAX_NUM_PADS constant 2014-06-01 12:37:32 +02:00
Peter Tissen
46eb74e98a undo visual studio auto-indenting 2014-06-01 12:37:31 +02:00
Peter Tissen
1024eb7b63 initial commit for multiple DInput devices.
allow multiple dinput devices but still block all dinput devices if an xinput device is present.
This still has some issues with devices not being able to be dynamically added or removed but
even many commercial games react to hot-plug DInput events. Also, the axis handling is not really
ideal yet but it works for now.
2014-06-01 12:37:30 +02:00
Sacha
8b4280b297 Rename KEYCODE to NKCODE (native key code) to stop name collision. Implement Blackberry keymapping. 2013-08-05 03:31:40 +10:00
Unknown W. Brackets
b46ab5f5a4 Always defined WIN32_LEAN_AND_MEAN.
Might as well, less mess everywhere else.
2013-07-28 21:04:20 -07:00
Unknown W. Brackets
d9bfcce0de Switch to buttons instead of A/B/X/Y for dinput.
This way people don't say "but my X button shows up as L1."
2013-07-07 17:05:03 -07:00
Unknown W. Brackets
4f93d57186 Add a few more dinput axises since it's easy. 2013-07-07 16:28:36 -07:00
Unknown W. Brackets
4541a79d54 Send only changed analog sticks in dinput. 2013-07-07 16:10:21 -07:00
Unknown W. Brackets
3852e26558 Remove the force device setting, map instead. 2013-07-07 13:44:21 -07:00
Unknown W. Brackets
b3b2269536 Remove some dead code. 2013-07-07 13:43:53 -07:00
Unknown W. Brackets
e6f4f3a9ac Fix POV so it resets, cooperates with kbd.
Only resends on change.  DirectInput is all about polling, unfortunately.
We could use a separate thread and wait on events...
2013-07-07 13:43:28 -07:00
The Dax
0003b4d4dd Layout ApplyButtons to more closely resemble the XInput code. 2013-07-07 16:33:15 -04:00
The Dax
175223118a Make coding style consistent across entire DinputDevice.cpp file. 2013-07-07 16:28:42 -04:00
The Dax
82b3afe923 Fix more styling issues. 2013-07-07 16:25:23 -04:00
The Dax
d182a3388e Fix some styling issues, remove some old and irrelevant comments. 2013-07-07 16:19:55 -04:00
The Dax
c65a2eeda3 Fix default button mappings and incorrect axes(they are wrong on my controller, at least..).
TODO: Fix comments.

Also, is there no way to remove the hack for the special buttons..?
2013-07-07 16:19:55 -04:00
The Dax
c5ffd23fb1 Fix inverted buttons, and allow the special keys to be remapped[hopefully..]. 2013-07-07 16:19:55 -04:00
The Dax
9aaf4e5e08 Add RightStickBind support. It's still not 100% bug free... 2013-07-07 16:19:55 -04:00
The Dax
3023ab91ec Add POV support. 2013-07-07 16:19:55 -04:00
The Dax
bc06c5992e Fix horrible styling. 2013-07-07 16:19:54 -04:00
The Dax
8e136bc383 Begin updating DirectInput for keymapping, and to take it off the legacy path. 2013-07-07 16:19:54 -04:00