36 Commits

Author SHA1 Message Date
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
The Dax
3560a489fb Add an option to allow DirectInput to swap the right analog stick axes, in case the emulator detects them incorrectly. 2013-07-05 19:09:16 -04:00
The Dax
fb3ade56b9 Add option to bind right analog stick to left/right dpad buttons only. Can be useful for games that use the dpad as a camera, and horizontal camera movement is more common than vertical(i.e. Monster Hunter). 2013-07-05 06:02:47 -04:00
Henrik Rydgård
0d0e1db1b9 Revert "Update DinputDevice.cpp"
This reverts commit 99ede3fbbb7c213e839bc8084264a592805e0971.
2013-06-29 18:12:48 +02:00
mk22customg
99ede3fbbb Update DinputDevice.cpp
Correct right stick options to DirectInput.
2013-06-29 22:19:56 +08:00
Unknown W. Brackets
a789b9edc2 Add right stick options to DirectInput.
At least, my controller uses Z axis/rotation.
2013-06-21 18:07:50 -07:00
Henrik Rydgard
fa335c83d3 Modify DInput and touch analog to not clamp to a circle. Tries to fix #2316 2013-06-19 20:47:42 +02:00
nachume
662df67d39 ADD: Pop-up menu for disable bind added to the controls dialog.
FIX: I forgot to delete ControlsMapping instance.
2013-05-23 09:39:36 +09:00
nachume
d24e5be256 FIX : keyboard bind issue, can not be setting of analog key.
ADD: set the dead zone to the axis of the DirectInput.
2013-05-19 18:12:22 +09:00
nachume
4062059c2e Add check init Controls Dialog and ControlMapping constructor 2013-05-18 22:59:13 +02:00
CrazyMax
960d1f9be9 add D-Pad diagonals for DirectInput; 2013-05-11 17:45:09 +03:00
CrazyMax
e864569d0c Windows: add Force Input Device option; 2013-04-16 17:34:20 +03:00
BeaR
01e23dc77f Remove dependency on dxguid.lib 2013-04-08 18:26:01 +02:00
Unknown W. Brackets
dcd2c26214 Treat the keyboard and pads differently.
We basically never want two pads active at once, but keyboard is
different.  So, they need to be treated differently.

Fixes #1212.
2013-04-07 18:42:23 -07:00
Unknown W. Brackets
1218db02f5 Skip pads if their analog is not set.
Not sure if a deadzone is needed... or if some pads may do a constant
bottom left or something...
2013-04-06 20:17:36 -07:00
Henrik Rydgård
f25735aa93 Merge pull request #1152 from CrazyMax/win-input
fix XInput issue introduced in d82b09b087
2013-04-01 11:23:25 -07:00
CrazyMax
0f5c7f2b31 fix XInput issue introduced in d82b09b087 2013-04-01 21:16:23 +03:00
Henrik Rydgard
09d1f3c1fa win: Fix X360 button problems by skipping DInput if there's a 360 pad available. 2013-04-01 20:15:16 +02:00
CrazyMax
6d2abe95b4 Windows: add support DirectInput gamepads (devices); 2013-04-01 04:55:38 +03:00