twinaphex
a82bb0ec94
Create special type input_bits_t
2018-04-08 20:21:12 +02:00
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
61ff51be2f
Start using string_is_equal predominantly
2018-01-16 22:53:38 +01:00
gblues
0f7de204f7
Last batch of whitespace cleanup (post-rebase)
...
-- looks like a few files committed with DOS line endings
2017-12-12 00:24:46 -08:00
twinaphex
c950613098
C comments
2017-12-11 11:28:48 +01:00
Peter Y. Hammond
b14598657c
Fixed a bug where the joypad devices were not always being assigned in the same order as they were numbered under /dev/input/. This showed up mainly when using an external USB Bluetooth dongle. In that case, controllers would be assigned often in reverse order.
2017-12-10 22:22:01 -07:00
twinaphex
f0c143766e
Change to 256bit macros
2017-12-05 12:07:35 +01:00
twinaphex
6c09661a64
Move defines to retro_miscellaneous.h
2017-12-05 10:42:37 +01:00
twinaphex
e94300a581
Get rid of a lot of RARCH_INPUT_STATE_BIT_ macros - replace them
...
with BIT128_ equivalents instead
2017-12-05 09:22:56 +01:00
David Walters
c5bdc02d6f
replace uint64_t with retro_bits_t* for pad buttons state
2017-11-28 10:04:34 +00:00
twinaphex
e16371b8a5
Merge input_config.c and input_driver.c
2017-08-31 02:25:04 +02:00
twinaphex
c70526b7af
Fix hotplug regressions with udev
2017-06-10 11:58:22 +02:00
twinaphex
eb08a86647
Get rid of udev_common.c
2017-06-08 21:46:26 +02:00
twinaphex
f9061ca931
Simplify udev_joypad_button
2017-06-07 20:48:33 +02:00
twinaphex
9a471d0ef4
Simplify udev_joypad.c
2017-06-07 20:44:14 +02:00
twinaphex
126a5bf121
Use string_is_equal_fast/string_is_not_equal_fast
2017-05-16 04:00:37 +02:00
twinaphex
1bf7cbccbe
input_device_names no longer part of settings struct
2017-04-27 21:35:46 +02:00
twinaphex
f9bc2d3783
Use memcmp instead of string_is_equal where possible for
...
better performance
2017-04-21 22:47:15 +02:00
David Erickson
da8662bb4a
Detect non-standard joystick buttons
...
The Xbox One S controller when connected via Bluetooth
is exposing its select button with the Linux KEY_BACK
code, which is outside of the normal input code
scan range for joysticks. This patch adds additional
scanning to pick up such extra buttons, and adds
them as buttons after the normal ranges to preserve
compatibility with existing key mappings.
2017-02-24 01:09:15 -08:00
twinaphex
96c8ca5a09
Header update #1
2017-01-22 13:40:32 +01:00
twinaphex
ea3dd6a95b
Set device name when autoconfig connect task fails for all
...
other input drivers too
2017-01-13 05:00:13 +01:00
twinaphex
103042de96
Rewrite task_autodetect.c
2016-12-31 07:43:34 +01:00
twinaphex
aafae944cb
Don't memset autoconfig_params_t
2016-12-17 14:26:13 +01:00
twinaphex
209305f944
Connect task now sets PID/VID too
2016-12-16 14:02:11 +01:00
twinaphex
d9def056e7
The 'connect' task now sets the device name upon completion
2016-12-16 12:33:56 +01:00
twinaphex
d2bd6677bd
(udev_joypad.c) Cleanup
2016-12-11 08:48:25 +01:00
twinaphex
37559c6f5f
Cleanups
2016-12-11 08:31:55 +01:00
twinaphex
423578d972
(Joypad drivers) Simplify hat code
2016-12-11 07:28:33 +01:00
twinaphex
021559a877
Get rid of runloop.h dependencies inside input/ dir
2016-12-02 06:07:45 +01:00
twinaphex
5fdb5b4dcf
Updates
2016-12-01 22:24:17 +01:00
twinaphex
d3c22cb0e4
Move input/input_autodetect.c to tasks/task_autodetect.c
2016-12-01 20:38:20 +01:00
twinaphex
76d0380e45
Rename input_autoconfigure_joypad to input_autoconfigure_connect
2016-12-01 18:57:44 +01:00
twinaphex
e689d55414
Rename autoconfig functions
2016-12-01 18:52:34 +01:00
twinaphex
debf5e0222
Rename g_udev and g_udev_mon
2016-12-01 17:39:36 +01:00
twinaphex
ebe1ac6967
(udev_joypad.c) Cleanups
2016-12-01 16:46:32 +01:00
twinaphex
63ae172a23
Add udev_common.c/.h
2016-12-01 15:02:42 +01:00
twinaphex
468644e213
Simplify udev_hotplug_available and prevent implicit memset
2016-12-01 03:59:02 +01:00
twinaphex
eee077fe31
(udev) Simplify udev_joypad_handle_hotplug
2016-12-01 03:50:35 +01:00
twinaphex
b1b2579fde
Start reducing size of some char variables
2016-10-27 09:17:41 +02:00
twinaphex
d6db2fe227
Change some strings
2016-10-22 04:52:46 +02:00
twinaphex
a4a1e96210
Prevent more implicit memsets
2016-10-16 01:40:29 +02:00
twinaphex
f6a5e4d8eb
Remove unused variable
2016-09-22 21:52:17 +02:00
twinaphex
075aea2289
Header include cleanups
2016-09-06 00:56:00 +02:00
twinaphex
9037473c7e
Header include cleanups
2016-09-01 05:51:08 +02:00
Alcaro
f5881c17ef
Use the same format as in the autoconfigs
2016-06-30 22:06:51 +02:00
twinaphex
bfa6f49ae6
Fix logically dead code warnings
2016-05-24 22:12:51 +02:00
twinaphex
fbd2e9aa84
Use string_is_equal more
2016-01-21 02:48:00 +01:00
twinaphex
347a18cb30
Update input headers
2016-01-10 04:33:01 +01:00
twinaphex
697351ee67
(input) Use string_is_empty
2015-12-26 07:54:17 +01:00
twinaphex
b8bbdc6f4c
Revert udev drivers
2015-12-17 03:02:48 +01:00