Megamouse
4df58494a0
Fix compilation
2024-11-16 09:45:31 +01:00
Megamouse
b89cc9b973
cellGem: implement real ps move handler
2024-11-16 09:45:31 +01:00
Megamouse
2262ac1684
Qt: Replace QMap with std::map
...
This should reduce the amount of string conversions during list refreshes
2024-11-06 09:34:32 +01:00
Joshua de Reeper
73cee9a43d
sys_usbd: Better Dimensions Move Handling
2024-11-05 18:17:05 +01:00
Megamouse
7b92cbcb9a
input: use std::array for sticks, sensors and motors
...
We always have the same amount of those.
So using a vector has always been a bit confusing.
2024-10-15 01:50:22 +02:00
Megamouse
e5a526e4d6
input: enable squircle settings in keyboard pad handler
...
Clamp squircled values to radius 1.
Also set kb and evdev default to 8000 as the others
2024-09-14 17:20:07 +02:00
Megamouse
fd6ebe2895
Qt/input: Don't report two direction trigger values unless actually requested
...
Fixes a bug where you could map LT- even if you weren't pressing ALT before.
2024-08-18 10:49:26 +02:00
Megamouse
08f81160cc
Input: Abbreviate some variable names and add min output interval
...
The abbreviation allows for easier diff between handlers.
2024-08-18 10:49:26 +02:00
Megamouse
93c21103aa
xinput: allow to map triggers as positive or negative
2024-08-13 20:14:30 +02:00
Megamouse
ff6a4bb72d
Qt/input: add shortcut for toggling emulated mouse and keyboard
2024-08-12 23:19:23 +02:00
Megamouse
cb122819ae
evdev: try to fix first call behaviour
...
We don't have all the events in the first call to get_next_button_press.
So we have to set all the buttons to max on the first call.
We also have to make sure that we don't manipulate the values if we just
want to know the connection status.
2024-08-11 00:56:07 +02:00
Megamouse
f2ef0966eb
input: add analog limiter
2024-08-10 12:07:57 +02:00
Megamouse
961239ac8d
Qt/input: make touch_threshold a member
...
Maybe we need will need it for a different handler in the future
2024-08-09 20:01:50 +02:00
Megamouse
326375ad9a
Qt/input: clear min_button_values if we want to get the blacklist
2024-08-09 20:01:50 +02:00
Megamouse
16a6915525
Qt/input: ignore button press values unless they increase
2024-08-09 20:01:50 +02:00
Megamouse
28781d9bfb
Qt/input: move preview_values into callback
2024-08-09 20:01:50 +02:00
Megamouse
bc23615508
Input: fix initial mouse config reload
2024-08-08 22:34:20 +02:00
Joshua de Reeper
f1d4e500ba
sys_usbd: Default replies for Dimensions Color Commands
2024-08-06 20:42:28 +02:00
Megamouse
4084e6f584
Dimensions: default init figures
2024-08-05 16:07:55 +02:00
Megamouse
7fa2987bb9
Infinity: Early out instead of scope
2024-08-05 16:07:55 +02:00
Megamouse
09ead1b6ea
Dimensions: try to fix out of bounds array access
2024-08-05 16:07:55 +02:00
Megamouse
bc07b9e659
Dimensions improve locks (maybe)
2024-08-05 16:07:55 +02:00
Megamouse
5bd2fd3391
Dimensions: make some functions static
2024-08-05 16:07:55 +02:00
Megamouse
30f49a61df
DS4/DualSense/SDL: add touchpad support
2024-07-31 08:45:25 +02:00
Joshua de Reeper
12fbff22b2
sys_usbd: Allow 'Moving' figure to same slot on Dimensions Toypad ( #15850 )
2024-07-29 17:50:20 +02:00
Pierrick Bouvier
3ab8922143
Fixed compilation
...
missing optional header (from commmit 500bf0f3f5 )
2024-07-21 08:43:12 +02:00
Florin9doi
33d2b27b91
USB: Top Shot Fearmaster device emulation
2024-07-19 22:10:11 +02:00
Florin9doi
088b594fa8
USB: Top Shot Elite device emulation
2024-07-19 22:10:11 +02:00
Florin9doi
a1a38b7b39
USB: Move uDraw GameTablet config from IO to Pads
2024-07-19 22:10:11 +02:00
Joshua de Reeper
500bf0f3f5
sys_usbd: Emulate Dimensions Toypad
2024-07-19 20:29:19 +02:00
Florin9doi
a1d2a72a78
USB: GunCon3 updates
...
-Process the mouse buttons even when x/y_max aren't yet determined.
-Allows to start the calibration without shaking the mouse before.
-Extend support to 4 players. The games can't use more than 2, but it
allows more flexibility to mix DS3 and GC3.
-Avoid OOB for unsupported Pads
2024-07-07 18:34:52 +02:00
Florin9doi
58d27a9438
Pad: Simplify is_fake_pad logic
2024-07-07 18:34:52 +02:00
Megamouse
f0713c8940
Input/Overlays: show pressure intensity toggle hint
2024-07-06 19:58:53 +02:00
Megamouse
d23ac6f598
input: move player_id to pad struct
2024-07-06 19:58:53 +02:00
Megamouse
20f906bf9b
input: add battery LED flag and some getters
2024-07-06 18:55:48 +02:00
Megamouse
44e4e67aa8
Simplify duplicate mouse handler init code
2024-06-30 12:02:37 +02:00
Megamouse
703de01ebf
input: actually initialize midi drum notes and combos
2024-06-27 22:14:35 +02:00
Megamouse
0679b502f2
input: allow dynamic change of midi drum config
2024-06-27 19:12:34 +02:00
Megamouse
e790842007
input: allow dynamic change of mouse configs
2024-06-27 19:12:34 +02:00
Megamouse
b251d81065
input: fix minimum turntable input
...
DJ Hero does not register input if the turntable is 0, so force it to 1.
This will happen if you map it to the left stick and push it all the way down,
or if you use a keyboard, which sends the max value on key press.
2024-06-26 23:45:00 +02:00
Megamouse
11ee80a070
input: add missing lock to keyboard handler ReleaseAllKeys
...
This should fix a segfault I encountered when closing a game.
I think the consumers were removed while the window went out of focus.
2024-06-26 22:19:56 +02:00
Megamouse
945bfaf0ea
input: differentiate between left and right modifier keys
2024-06-23 15:54:13 +02:00
Megamouse
b8452d29d6
input: move pad_state_notify_state_change to pad_thread
2024-06-12 08:24:12 +02:00
Elad Ashkenazi
0b22423ab8
Minor fs::file usage fixes
...
Do not crash on file creation failure. Make some config writes atomic.
2024-06-10 13:45:23 +03:00
Megamouse
c15121377f
Input: Implement anti deadzone
2024-06-07 21:18:37 +02:00
Megamouse
eb574e8a35
Fix config_mouse.yml path on windows
2024-06-06 15:02:47 +02:00
Megamouse
0e32f19de8
input: remove unused parameter
2024-05-25 22:23:15 +02:00
Megamouse
2978a9aa40
input: fix reading mouse buttons from guncon cfg
2024-05-21 23:35:35 +02:00
Megamouse
32a938abd2
input/qt: allow to map mouse buttons in the guncon config
2024-05-21 23:35:35 +02:00
Megamouse
1600ca2c03
input: add horizontal mouse scroll/tilt to mouse handlers
2024-05-21 23:35:35 +02:00