224 Commits

Author SHA1 Message Date
grant2258
a68e5205bd add relative left mouse button when pointer device is not abs 2021-10-16 19:26:40 +01:00
grant2258
a327fdb6fe
add mouse relative check and set appropiatley to fix issue (#12994)
* re add this after failed rebase

* update

* temp fix for device friendly naming as it is for testing

* add device friendly names in the appropiate place

* add/remove hotplug dev to ra input mouse port list

Co-authored-by: grant2258 <you@example.com>
2021-09-24 18:31:20 +02:00
jdgleaver
12f787547c
Add workaround to fix keyboard input when using x11+udev (#12981) 2021-09-13 18:02:40 +02:00
grant2258
88b15c1b1d this function is called more than once dont use static 2021-09-12 20:58:49 +01:00
Ryan C. Gordon
9a6faa3ddd
udev_input.c: Look for "ID_INPUT_KEY", not "ID_INPUT_KEYBOARD"
This fixes programs using /dev/uinput to create a virtual keyboard failing
to be detected on startup. Usual symptom is some sort of GPIO-based
controller that looks like a keyboard to the OS and can control
EmulationStation, but fails to work in-game unless you restart the program
while the game is running (in which case udev_input.c's hotplug code, which
was using the correct key, would pick it up).
2021-08-19 16:00:57 -04:00
sonninnos
bd3533f05d Friendly names for mice where available 2021-08-06 00:21:17 +03:00
amtz
d0612f906d Limit udev device scan to subsystem 'input'
This change makes the call to 'udev_enumerate_scan_devices' much faster.
In particular, for some bluetooth devices, this function may implicitly
read its battery's virtual file 'uevent', e.g.

/sys/devices/*/usb1/1-1/*/bluetooth/hci0/*/power_supply/hid-*-battery/uevent

Reading this file may (for unknown reasons) block up to 10 seconds.
Since udev_enumerate_scan_devices is called 4 times (for keyboard,
mouse, touchpad, and joypad) during startup this may cause a
considerable delay.

Limiting the scan to subsystem 'input' yields the same devices but makes
the scan faster and does not read 'uevent' of the input controller's
power_supply.
2021-08-02 13:17:00 +02:00
Grant
d6a1c21fe1 udev fixes] 2021-06-26 23:09:47 +01:00
Grant
c73592d379 skip mouse with no button errors and keep the rest 2021-06-22 23:00:50 +01:00
Grant
4ba0ba4c70 fix up logging that can confuse users 2021-06-22 22:06:19 +01:00
Autechre
bd937eb49f
Merge pull request #12536 from grant2258/udev
only add mouse if it has buttons and add vebose device friendly names
2021-06-22 17:23:19 +02:00
Autechre
6986caed5b
Merge pull request #11388 from pjft/dual-lightgun
Change udev driver for dual lightgun support in X11
2021-06-21 18:06:35 +02:00
Grant
6e2709d62a cleanup 2021-06-19 08:47:35 +01:00
Grant
eef86d5f72 fix game focus mode 2021-06-19 07:59:06 +01:00
Grant
863aaa5b9d Revert "fix game focus mode on udev as well"
This reverts commit 54eed6341862be97e1a40ba19984bc666f368592.
2021-06-19 07:44:02 +01:00
Grant
54eed63418 fix game focus mode on udev as well 2021-06-19 07:00:09 +01:00
Grant
7915b040a9 only add mouse if it ha buttons and add vebose device friendly names 2021-06-18 03:55:25 +01:00
David Carlier
3b7e0a8db1 FreeBSD build fix proposal 2021-05-01 15:37:14 +01:00
twinaphex
cfe9d60f51 Get rid of button_is_pressed 2021-04-15 06:55:35 +02:00
twinaphex
f1cf5ceb82 (input drivers) Cut down on code duplication 2021-04-11 16:31:46 +02:00
twinaphex
05a2623875 (udev input) Cut down on code duplication 2021-04-11 06:37:49 +02:00
twinaphex
ca5ce839ce Small cleanups to button input handling code - several parameters
were no longer used
2021-04-10 19:06:56 +02:00
pjft
0a83817f25
Merge branch 'master' into dual-lightgun 2021-01-18 11:23:44 +00:00
twinaphex
22e966be5b Cleanups 2020-12-09 22:25:05 +01:00
jdgleaver
3fa1166ec4 (udev/linuxraw/wayland) Fix return key keyboard input 2020-09-29 11:23:35 +01:00
pjft
f8b4289811 Change udev driver for dual lightgun support in X11 2020-09-28 21:25:51 +01:00
twinaphex
1c5f4e1dee Start cutting down on input_state - move all joypad driver code up to
higher-level retroarch.c
2020-09-02 15:26:03 +02:00
twinaphex
2fde8c21a9 Remove set_rumble function from input driver 2020-09-02 00:38:11 +02:00
twinaphex
acc0f2143f Change input_key_pressed so we no longer need to pass joypad
to the poll function callback
2020-09-01 21:43:39 +02:00
twinaphex
1d67ae3c63 Fix Android error 2020-09-01 17:41:05 +02:00
Autechre
87e35d56ae
Merge pull request #11264 from libretro/refact-joypad
Refactor joypad/input drivers
2020-08-31 20:04:18 +02:00
twinaphex
6b756986d5 (UDev) Buildfix for platforms that don't define UDEV_XKB_HANDLING 2020-08-31 14:04:36 +02:00
twinaphex
fe6d047bfe (Udev) Cleanups 2020-08-31 03:38:51 +02:00
twinaphex
6f92c56ca3 Simplify input drivers 2020-08-31 02:07:43 +02:00
twinaphex
d4d8b6934a Put keyboard_mapping_blocked into p_rarch / rarch struct
instead
2020-08-30 18:47:29 +02:00
twinaphex
035efa5136 Inline pressed_analog functions into input_state function itself 2020-08-30 16:57:04 +02:00
twinaphex
e119d3c98e Further cleanups/standardizations to analog_pressed 2020-08-30 16:38:53 +02:00
twinaphex
97319d4f98 Standardize pressed_analog functions 2020-08-30 16:19:11 +02:00
twinaphex
5f08605680 Refactor joypad drivers 2020-08-30 05:29:32 +02:00
twinaphex
721b3039e4 (UDev) Buildfix 2020-08-30 04:52:00 +02:00
twinaphex
a244a39626 Cleanups 2020-08-30 00:25:21 +02:00
twinaphex
b3744c3126 Put input_jpyad_init_driver last in 'input' callback function 2020-08-29 20:46:42 +02:00
twinaphex
e6b9420a15 (Input) reorder structs, alignment 2020-08-26 15:32:05 +02:00
twinaphex
2509a75477 (Udev) Code de-duplication 2020-07-19 05:07:50 +02:00
twinaphex
d97e590aaf Reimplement multi button state functions 2020-07-19 03:18:12 +02:00
twinaphex
3297e464c4 (Input) Optimize input bitmask codepath 2020-07-14 01:39:07 +02:00
Ben Klopfenstein
17465462b8 X11 lightgun support 2020-06-26 19:47:43 -06:00
twinaphex
689ac432d6 MOve input_joypad_analog call to inside retroarch.c instead of the
input driver itself, and make function static
2020-06-23 18:31:40 +02:00
twinaphex
35c55c4b50 Potential fix for #10884 2020-06-22 20:34:40 +02:00
twinaphex
c7cd327b5b Rearrange input state input drivers for ANALOG - do joypad
processing first, then keyboard second
2020-06-13 05:25:10 +02:00