David Demelier
e99049a8ff
Use EVIOCGID's ioctl to get vendor/product id, #6325
...
The current code get the USB vendor/product controller, in case of
bluetooth connection this means that you get the bluetooth dongle ids
instead of gamepads. This is not fine as we match gamepads using their
product and vendor ids.
Credits go to SDL which helped me to figure out this issue.
http://hg.libsdl.org/SDL/file/f7c6b974d5af/src/joystick/linux/SDL_sysjoystick.c#l208
2018-02-23 09:19:43 +01:00
twinaphex
5139241e87
Fix Python codepath
2018-02-19 09:11:33 +01:00
twinaphex
070c09faec
Avoid more pointer grabbing for video driver ptr
2018-02-16 20:42:37 +01:00
twinaphex
2b02616512
Disable ENABLE_TOUCH_SCREEN_MOUSE for now until issues are resolved
2018-02-15 14:50:14 +01:00
twinaphex
56389466aa
(input_overlay.c) Cleanups
2018-02-11 17:58:24 +01:00
Brad Parker
039da3bb83
C89 buildfix
2018-02-06 22:17:32 -05:00
Twinaphex
0c3a684e2c
Merge pull request #6192 from gblues/master
...
Fix memory management bugs
2018-01-28 08:48:21 +01:00
gblues
f2ea5dde11
Fix memory management bugs
...
== DETAILS
* Fix double-free in hidpad shutdown code
* Fix possible double-free in hidpad error handling code
* Fix memory leak in adapter delete method
2018-01-27 22:54:59 -08:00
Olivier PARRA
8bff69eae8
1.[IOS9]Remove HID entry from menu as IOKIT is not available 2.[OSX]Add robustness and determinism to HID buttons detection code (add controller buttons in a sorted list)
2018-01-25 02:20:52 +01:00
twinaphex
80b17668b6
Add initial VS2013 solution
2018-01-24 01:29:45 +01:00
Twinaphex
4a6a97be60
Merge pull request #5429 from GregorR/netplay-input-upgrades-1
...
Netplay input upgrades 1
2018-01-23 05:01:45 +01:00
twinaphex
3fc2ddb8d2
(IOHIDManager) Add improvements - https://github.com/libretro/RetroArch/issues/4816#issuecomment-359145035
2018-01-22 06:48:56 +01:00
twinaphex
c5ffd06778
Revert "(xdk_joypad.c) Cleanups"
...
This reverts commit 49c399217d5b8dbd3db549506fa3d6c2a28b7293.
2018-01-21 01:48:28 +01:00
twinaphex
6c73cea470
Revert "Buildfix"
...
This reverts commit 832cf072477700b61d25708509acf28b6fba7347.
2018-01-21 01:48:21 +01:00
twinaphex
832cf07247
Buildfix
2018-01-21 01:44:18 +01:00
twinaphex
49c399217d
(xdk_joypad.c) Cleanups
2018-01-21 01:43:19 +01:00
twinaphex
932904e07e
(Xbox 360) Buildfixes
2018-01-20 23:42:10 +01:00
twinaphex
b7bbf368fe
(XBox XDK) Input should work again completely
2018-01-20 23:38:32 +01:00
Twinaphex
f08031345e
Merge pull request #6144 from aliaspider/master
...
various / build fixes.
2018-01-20 21:54:37 +01:00
aliaspider
5db96f35fa
(WIN32) various build fixes.
2018-01-20 20:05:32 +01:00
twinaphex
528e4d8cc4
xdk_joypad_axis - implement case 4/5 for Xbox 360
2018-01-20 19:57:14 +01:00
twinaphex
6311885824
(XDK1) Change D-pad to hat controls - make gamepad D-pad and analog
...
stick work properly
2018-01-20 19:48:29 +01:00
twinaphex
13da6bf4a2
With Xbox OG, some of the face buttons are analog buttons -
...
need to implement this in _button callback function
2018-01-20 19:34:01 +01:00
twinaphex
b4bb6e2ef4
Start making xdk_joypad code more similar to PC code
2018-01-20 19:05:39 +01:00
twinaphex
64e0861aee
remove iteration variables
2018-01-20 18:57:19 +01:00
twinaphex
3ba978caa9
Make axis function more like PC version
2018-01-20 18:55:28 +01:00
twinaphex
e16d962c01
Start getting rid of analog_state
2018-01-20 18:54:21 +01:00
twinaphex
f25306ba22
memset g_xinput_states to 0
2018-01-20 18:50:24 +01:00
twinaphex
03a745e5b4
Remove xdk_joypad_get_buttons
2018-01-20 18:47:39 +01:00
twinaphex
0550b22a35
(XDK) Buildfix
2018-01-20 18:46:13 +01:00
twinaphex
f74e399bdf
Start rewriting xdk_joypad.c
2018-01-20 18:44:35 +01:00
twinaphex
41575a63ac
(XDK joypad) Cleanups
2018-01-20 17:59:59 +01:00
twinaphex
e6f637ea6b
Set autoconfig binds for Xbox
2018-01-20 03:14:17 +01:00
twinaphex
d01b9c4a09
Cleanups
2018-01-19 21:25:35 +01:00
twinaphex
82f721145c
(XDK) Refactor xdk_joypad.c
2018-01-19 21:24:28 +01:00
twinaphex
b4b5ed1630
Rely on xbox input subsystem to attach/detach gamepads
2018-01-19 07:02:47 +01:00
twinaphex
0731a79a4f
Pass this to XInputOpen
2018-01-19 06:56:44 +01:00
twinaphex
f71bbeae9f
(XDK) Try to autodetect all pads at startup
2018-01-19 06:49:52 +01:00
twinaphex
897c1654ab
Reduce usage of string_is_not_equal_fast
2018-01-17 01:03:48 +01:00
twinaphex
61ff51be2f
Start using string_is_equal predominantly
2018-01-16 22:53:38 +01:00
Toad King
ccb45a068d
fix compiler warning
2018-01-15 04:52:35 -06:00
Toad King
460ceaef97
queue keyboard events and only process them when polling
...
fixes hitting enter from search box also selecting underlying menu item
2018-01-14 14:37:25 -06:00
Toad King
4fd750b48a
add builtin autoconf script for emscripten gamepads with "standard" mapping
2018-01-14 04:24:37 -06:00
Toad King
b3900217da
clamp axis values to -1.0 - 1.0, at least firefox can report values outside that range
2018-01-14 03:43:23 -06:00
Toad King
1f8a85615c
don't always clear poll state
2018-01-14 02:34:38 -06:00
Toad King
de3581de73
fix analog sticks
2018-01-14 01:35:28 -06:00
Toad King
15c3f56b37
fix phantom button presses
2018-01-14 01:00:46 -06:00
Toad King
21d928ba0e
add joypad driver for emscripten
2018-01-14 00:15:30 -06:00
Toad King
38ec1acf8e
add mouse support to emscripten
2018-01-13 20:51:30 -06:00
Toad King
0ce1fa7751
fix search box in menu
2018-01-13 20:47:15 -06:00