Zoran Vuckovic
12d0f4107a
Use int32_t instead of __s32
2017-10-05 10:00:20 +02:00
Zoran Vuckovic
135b636bd4
Add "absolute" mouse support
2017-10-05 05:18:53 +02:00
Zoran Vuckovic
84d33fb847
Disable keyboard input if window is not active
2017-09-10 05:50:10 +02:00
twinaphex
e16371b8a5
Merge input_config.c and input_driver.c
2017-08-31 02:25:04 +02:00
Brad Parker
b9036e26a7
fix buffer overflow
2017-07-22 16:08:05 -04:00
Zoran Vuckovic
aa99f4f5ba
Disable keyboard input and restrict mouse input in some cases
2017-07-18 01:16:48 +02:00
Paolo Bonzini
d1dc2e9670
add support for remote control devices and other ID_INPUT_KEY devices
...
* the remote control presents itself as ID_INPUT_KEY, not
ID_INPUT_KEYBOARD. However, ID_INPUT_KEYBOARD is a subset of
ID_INPUT_KEY.
* the remote control lacks the backspace and enter keys, which are hard
coded in RetroArch. It has "back" and "ok" instead, so map those to
RETROK_BACKSPACE and RETROK_ENTER as well.
Remote controls also have no ESC key, but that one is customizable
and I used the Power key of the remote (which already has a mapping
to RETROK_POWER).
The functionality provided is really the bare minimum, but it is enough
to teach a kid "press the power button here to watch TV"; compared to
pressing L1+R1+START+SELECT and navigating to the RetroArch's "quit"
menu item, that hopefully has more chances of success.
2017-07-02 10:50:00 +02:00
twinaphex
fe829e5eb0
Fix C89_BUILD
2017-06-28 18:01:04 +02:00
Twinaphex
5c5c5ecbdf
Revert "udev input: support controlling the menu with a TV remote control"
2017-06-22 20:53:07 +02:00
Paolo Bonzini
d5cdbca322
add support for remote control devices and other ID_INPUT_KEY devices
...
* the remote control presents itself as ID_INPUT_KEY, not
ID_INPUT_KEYBOARD. However, ID_INPUT_KEYBOARD is a subset of
ID_INPUT_KEY.
* the remote control lacks the backspace and enter keys, which are hard
coded in RetroArch. It has "back" and "ok" instead, so map those to
RETROK_BACKSPACE and RETROK_ENTER as well.
Remote controls also have no ESC key, but that one is customizable
and I used the Power key of the remote (which already has a mapping
to RETROK_POWER).
The functionality provided is really the bare minimum, but it is enough
to teach a kid "press the power button here to watch TV"; compared to
pressing L1+R1+START+SELECT and navigating to the RetroArch's "quit"
menu item, that hopefully has more chances of success.
2017-06-19 15:09:13 +02:00
twinaphex
1598042e8e
(udev) Keyboard should work again in DRM/KMS
2017-06-12 12:09:19 +02:00
twinaphex
e92feb85af
Use epoll functions directly
2017-06-11 20:44:02 +02:00
twinaphex
060753258a
Combine input_driver.c and input_keyboard.c
2017-06-11 17:51:12 +02:00
twinaphex
95e588ce0f
Fix C89_BUILD
2017-06-10 12:52:45 +02:00
twinaphex
34be5566dd
(udev fix) This fixes touchpad movement inside the menu
2017-06-10 12:27:22 +02:00
twinaphex
84f5fa1f26
(epoll_common.c) Cleanups; don't use verbosity logging inside
2017-06-10 12:07:01 +02:00
twinaphex
c70526b7af
Fix hotplug regressions with udev
2017-06-10 11:58:22 +02:00
twinaphex
e8c73c6683
Rewrite other input drivers too
2017-06-10 11:22:24 +02:00
twinaphex
37656eed84
(udev_input.c) Rework input_state
2017-06-10 10:58:56 +02:00
Twinaphex
6d85e1f0a6
Merge pull request #5045 from casdevel/mice
...
Add player mouse device selection
2017-06-10 04:13:16 +02:00
Zoran Vuckovic
e698e75a51
Adapt touchpad code for multiple mice support
2017-06-09 21:17:11 +02:00
twinaphex
8980f8c1ea
Get rid of useless wrapper function epoll_waiting
2017-06-08 21:52:50 +02:00
twinaphex
eb08a86647
Get rid of udev_common.c
2017-06-08 21:46:26 +02:00
Zoran Vuckovic
44930716ba
Add player mouse index handling to udev input driver
2017-06-08 18:49:08 +02:00
Zoran Vuckovic
ceca89e104
Fix DRM/KMS keyboard handling
2017-06-07 12:25:10 +02:00
twinaphex
603d4d0464
(udev/x11) Simplifications
2017-06-07 01:17:55 +02:00
twinaphex
604a558382
Get rid of input_wl_is_pressed
2017-06-07 00:09:31 +02:00
twinaphex
6b3dbff75f
Merge input_driver.c and input_joypad_driver.c
2017-06-06 05:56:02 +02:00
twinaphex
9ebfb36b4e
Use rarch_keysym_lut directly
2017-06-06 05:17:25 +02:00
twinaphex
e276142be3
(udev_input.c) Cleanup
2017-06-06 04:18:35 +02:00
twinaphex
15c4f82dec
(udev_input.c) Cleanups
2017-06-06 03:59:52 +02:00
twinaphex
c3c772a79a
(udev) Avoid warning with helgrind - input descriptor -1 is invalid
2017-06-05 05:18:38 +02:00
twinaphex
8b945a103f
(udev_input.c) Set st_dev manually
2017-06-04 21:16:35 +02:00
Zoran Vuckovic
ab793b92a3
Remove XKBCOMMON code
2017-06-04 07:23:32 +02:00
Zoran Vuckovic
1911aadc19
Remove duplicate keyboard handling
2017-06-04 07:16:57 +02:00
twinaphex
85058fbe5c
(udev_input.c) Some cleanups and a runtime check for X11
2017-06-03 18:54:04 +02:00
Zoran Vuckovic
210da4d204
Add ifdef checks for X11-specific code
2017-06-03 18:01:27 +02:00
Zoran Vuckovic
05a90f7f70
Add mouse grab/ungrab feature
2017-06-03 16:26:08 +02:00
Zoran Vuckovic
39a9ac8444
Add pointer handling to fullscreen mode
2017-06-03 12:46:53 +02:00
Zoran Vuckovic
11559f294a
Add multiple mice support to udev driver
2017-06-02 07:57:07 +02:00
twinaphex
f83a26c8b0
(udev_input.c) Simplifications
2017-05-20 20:50:23 +02:00
twinaphex
9f6dc975da
Simplify udev_input.c
2017-05-20 20:35:42 +02:00
twinaphex
5a9dbf7e4f
Merge keyboard files for udev/x11
2017-05-20 19:44:04 +02:00
twinaphex
126a5bf121
Use string_is_equal_fast/string_is_not_equal_fast
2017-05-16 04:00:37 +02:00
twinaphex
f9bc2d3783
Use memcmp instead of string_is_equal where possible for
...
better performance
2017-04-21 22:47:15 +02:00
twinaphex
7f4b490fdb
Prevent implicit memsets with struct video_viewport
2017-04-15 19:43:52 +02:00
twinaphex
96c8ca5a09
Header update #1
2017-01-22 13:40:32 +01:00
twinaphex
8bd12368ef
Pass joypad_driver name to input_driver_init function and make
...
sure we don't need to access the settings struct from the
input driver
2017-01-10 17:59:48 +01:00
twinaphex
d48141041d
Pass joypad_info to input_state function callback - less
...
settings pointer grabbing
2017-01-10 17:40:21 +01:00
twinaphex
da4d2a9f42
Remove conditionals for device JOYPAD from input_state callback functions
2017-01-10 17:05:04 +01:00