Commit Graph

75 Commits

Author SHA1 Message Date
Cameron Gutman
b80cfce2ce Fix build with 64-bit time on 32-bit platforms 2025-11-28 16:51:18 -06:00
Cameron Gutman
fc904d2dac Treat devices as gamepads if they have a hat instead of an analog stick
Fixes #880
2024-02-18 14:56:57 -06:00
armin-25689
a610eddd97 build: change <endian.h> header file and __s32 type for FreeBSD 2024-01-01 12:41:51 -06:00
Cameron Gutman
dc03235a62 Fix several build warnings 2023-10-29 19:56:18 +00:00
Cameron Gutman
19442743a6 Fix busy looping forever after an evdev device goes away 2023-09-01 18:07:25 -05:00
Cameron Gutman
e15466e909 Send controller arrival from evdev backend 2023-08-29 21:45:55 -05:00
Cameron Gutman
0deeb94655 Add support for extended Sunshine button flags 2023-08-29 20:47:31 -05:00
Cameron Gutman
0169cedb27 Allow up to 16 gamepads with Sunshine hosts 2023-06-30 20:55:20 -05:00
Cameron Gutman
32ebb00292 Add horizontal scrolling support with Sunshine 2023-02-21 23:31:34 -06:00
Cameron Gutman
098f53cd0b Fix several build warnings and minor bugs 2022-11-20 19:34:19 -06:00
Cameron Gutman
76b0de3566 Triggers should be unsigned types 2021-09-16 01:28:09 -05:00
Cameron Gutman
81a49e4564 Add parameter to disable gamepad mouse emulation 2021-08-08 12:03:56 -05:00
Cameron Gutman
4b41692fd8 Fix handling of buttons outside the normal joystick range
See aa03b9d7af

Fixes #788
Fixes #696
Fixes #675
Fixes #693
Fixes #642
2021-08-08 11:26:07 -05:00
Cameron Gutman
d45567b5ee Revert "Fix pressing unmapped buttons causing unexpected inputs"
Instead, we should not exclude certain buttons from mappings.

This reverts commit 21b6af3493.
2021-08-08 11:16:57 -05:00
Cameron Gutman
21b6af3493 Fix pressing unmapped buttons causing unexpected inputs 2021-08-08 11:07:13 -05:00
TheChoconut
469b2ed866 Mouse emulation support for evdev 2021-08-03 17:36:07 -05:00
Cameron Gutman
cd2f1bb012 Add a verbose print when a device is ignored as an accelerometer 2021-07-25 19:13:40 -05:00
Cameron Gutman
663e4b4b7a Avoid mapping PS4 trackpad as a gamepad 2021-07-25 19:10:01 -05:00
Cameron Gutman
836e61b7c3 Remove gamepad from host when removed from client 2021-07-25 18:54:39 -05:00
Cameron Gutman
12efeda8e1 Ignore accelerometers and improve debugging of player numbers 2021-07-25 18:49:11 -05:00
Cameron Gutman
4dd6ab97df Fix over-counting of evdev gamepads on stream start 2021-07-25 18:33:52 -05:00
Cameron Gutman
45c1a504e9 Avoid stuck keys on disconnect and remove useless sleep 2021-07-25 18:03:07 -05:00
Cameron Gutman
e8fbb2ec9c Add half-axis support for dpad 2021-07-25 17:04:43 -05:00
Cameron Gutman
35af4c4ede Add half-axis support for triggers 2021-07-25 16:47:06 -05:00
Cameron Gutman
5215271b60 Add meta modifiers 2021-07-25 15:15:14 -05:00
Iwan Timmer
95104759ab Fix missed merging conflicts
Fixes commit 4711129
2020-04-19 11:37:02 +02:00
Iwan Timmer
4711129d14 Merge remote-tracking branch 'tomblind/touchscreen' 2020-04-18 21:43:09 +02:00
Tom
5beb32d066 Emulating right click on touch screens with a long press 2020-04-18 07:34:52 -06:00
Tom
6b8260c1e5 refactored touchscreen code for clarity and safety, and removed hacked in rotation 2020-04-18 07:03:59 -06:00
Tom
b22b07e5a0 Applied display rotation to mouse movement in evdev 2020-04-17 16:50:04 -06:00
Tom
c9a624595b initial touchscreen support (rotated 90 degrees for the moment) 2020-04-13 13:16:25 -06:00
Albert Andaluz
fe1c203b10 when sending CTRL+ALT+SHIFT+Q key sequence for disconnecting from the remote host, always send a keydown event to avoid leaving the remote host keyboard in key_UP state. (seen with Geforce Experience 3.17) 2020-01-05 22:00:30 +01:00
Hugo Hromic
434dba31de General codebase clean-ups (no code changes)
* Remove trailing spaces
* Replace TABs with spaces
* Add missing indentation
2019-10-05 19:13:24 +01:00
Hugo Hromic
243ef8ae0b Also grab mouse input devices (fixes #756) 2019-09-12 17:41:00 +01:00
Jose Antonio Postigo
7b46b4b2ea Minor fixes to get rumble working in evdev devices 2019-04-18 17:32:16 +02:00
Hugo Hromic
212eac6359 Only grab input devices if they are keyboards 2019-02-24 16:17:46 +00:00
Iwan Timmer
292a26d6ad Initial attempt to implement rumble for evdev 2019-02-16 16:12:06 +01:00
Hugo Hromic
9a1db0919b Rename QUIT_MODIFIERS and MODIFIERS constants to ACTION_MODIFIERS
For consistency in the evdev, sdl and x11 input drivers.
2018-12-01 15:23:59 +00:00
Cameron Gutman
e21e2074e3 Add support for X1 and X2 mouse buttons 2018-10-09 19:39:25 +02:00
Iwan Timmer
53d2e7cbf9 Small buffer size fix 2018-08-11 17:28:52 +02:00
Iwan Timmer
8dfab9bc4f Do not complain about incorrect mapping when some abs are not used 2018-04-08 11:28:55 +00:00
Iwan Timmer
c8195f796c Provide gamepad mask at startup 2018-04-08 11:28:55 +00:00
Iwan Timmer
dcda1a5d13 Correct controller GUID when product or vendor id is undefined 2018-03-20 19:49:26 +01:00
Dariusz Stojaczyk
0125a497f0 evdev: limit unnecessary polls
The previous code was probably a typo.
This patch doesn't bring any measurable
performance improvements, but still
prevents the fd from being corrupted.

Signed-off-by: Dariusz Stojaczyk <darek.stojaczyk@gmail.com>
2017-12-03 12:18:01 +01:00
Iwan Timmer
7ea2a41f48 Remove debug statement 2017-11-05 14:17:14 +01:00
Iwan Timmer
f08b701223 Add map function to create controller mappings 2017-10-24 20:51:08 +02:00
Iwan Timmer
a4e19af04f Send gamepad data on trigger button press 2017-09-02 18:56:56 +02:00
Iwan Timmer
c1c0e54345 Add warning for invalid mappings 2017-08-06 22:31:19 +02:00
Iwan Timmer
76cf6f6339 Fix xbox 360 wireless fallback mapping 2017-07-04 20:06:29 +02:00
Iwan Timmer
f081ebad21 Add mapping for wireless xbox controller 2017-07-02 13:38:48 +02:00