Commit Graph

222 Commits

Author SHA1 Message Date
Sorgelig
d5f41db979 input: support for multiple input devices mapping per player. 2023-05-28 21:41:58 +08:00
Sorgelig
872b433ed5 input: add selective unique mapping. 2023-05-22 20:18:24 +08:00
Sorgelig
a43d1a58c8 input: add vidpid as a clear text in unique mapping. 2023-05-21 16:05:39 +08:00
Sorgelig
51470c27cc input: remove sysfs from unique mapping. 2023-05-21 06:25:24 +08:00
Sorgelig
d6eefdcbdc input: make unique mapping per port. 2023-05-21 02:28:34 +08:00
Alexey Melnikov
0ebf137532 input: Controller unique mapping (preliminary)
Add ini option `unique_mapping` which makes controller mappings unique to the physical port the controller is connected to.
Calculates a uint32_t unique_hash for each device during enumeration.

Co-authored-by: Martin Donlon <github-martin@donlons.com>
2023-05-21 02:14:27 +08:00
Matheus Fraguas
0c03e569a8 Support to use mouse wheel as spinner. (#744) 2023-02-22 04:13:20 +08:00
Sorgelig
2d40444af0 ini option to disable autofire. 2022-11-28 20:46:42 +08:00
Sorgelig
7913771888 input: add pageup/pagedown buttons to controller in linux console. 2022-11-11 19:37:42 +08:00
Sorgelig
19594babaf input: permanent controller assignment now searches in Sysfs as well. 2022-11-01 02:05:27 +08:00
Sorgelig
631276d59d Add MiSTer_cmd command: volume mute/unmute/0-7. 2022-10-31 23:05:20 +08:00
Sorgelig
6bda023db8 Add INI option for permanent controller assignment to specific player. 2022-10-31 19:53:50 +08:00
zakk4223
b1d6ee2f52 Support "guide2" in gamecontrollerdb for OSD button chords. Support the +/- analog axis notation for mapping analog to digital buttons (#692)
Co-authored-by: Zakk <zakk@rsdio.com>
2022-09-09 18:39:24 +08:00
zakk4223
e28c6616b6 input: Use sub_dev to find controller db entries: fixes some multifunctional devices (#689)
Co-authored-by: Zakk <zakk@rsdio.com>
2022-08-30 14:07:23 +08:00
zakk4223
5b4acd3c7b input: add support for sdl gamecontrollerdb to setup default mappings for controllers
* Add support for sdl style gamecontrollerdb to setup default mappings for controllers

* Do not cache game controller entries, find them dynamically in the file when needed

Co-authored-by: Zakk <zakk@rsdio.com>
2022-08-22 21:46:16 +08:00
makigumo
051ffd3a4d input: add key values for japanese keyboards (#674) 2022-08-03 23:12:35 +08:00
Martin Donlon
cebd306abd Spike profiler 2022-07-17 11:58:16 -07:00
Sorgelig
ba837a789e input: fix: vibration test could stick. 2022-06-06 19:54:10 +08:00
Sorgelig
a20b86d3cd input: enable vibration test by holding L button. 2022-06-06 19:43:10 +08:00
JB
1845079eb6 input: Added Gun4IR lightgun support to input.cpp (#633)
Added support for the Gun4IR lightgun to the lightgun input list, for native support.
2022-06-06 00:01:02 +08:00
jaysonlarose
ac86f967a4 input: Changed wh_break to wh_brake. (#621) 2022-05-25 18:22:45 +08:00
Matheus Fraguas
0f0affb238 NeGcon as wheel via RetroZord adapter (arduino based) (#607) 2022-05-20 07:43:53 +08:00
Nolan Nicholson
8f80dbab77 CRT lightguns: 50 ms offscreen grace period (#599)
When a CRT lightgun starts reporting out-of-screen coordinates,
the last good on-screen coordinates are retained and passed through
for 50 ms. This improves GunCon 2 performance on NES, and generally
makes CRT-based guns a bit more reliable in games with a lot of dark
areas.
2022-05-09 15:00:28 +08:00
Sorgelig
28a751cc89 input: refactored wheel setup code. 2022-04-22 05:21:54 +08:00
Michael Huang
ef50535f74 Add Fanatec wheels (#583) 2022-04-21 22:45:17 +08:00
Sorgelig
5a6ecd790b input: initial support for wheels. 2022-04-21 04:22:39 +08:00
Matheus Fraguas
cc9791eea6 Guncon support via RetroZord adapter (arduino based) (#573) 2022-03-19 23:06:20 +08:00
zakk4223
54273bcb10 Don't skip first input device for rumble (#570) 2022-03-14 14:05:16 +08:00
Sorgelig
d226c5522b input: fix rumble on compound devices. 2022-03-14 06:37:50 +08:00
Sorgelig
7a949a1ae2 input: combine rumble I/O id. Some cleanup. 2022-03-13 16:10:26 +08:00
zakk4223
6e18651521 Add support for rumble data from hps_io. Fix data truncation in spi_uio_cmd (#568)
Co-authored-by: Zakk <zakk@rsdio.com>
2022-03-13 15:21:19 +08:00
Nolan Nicholson
3a5cf8ed6b GunCon 3 + negative gun-cal values (#565) 2022-03-06 19:00:56 +08:00
Sorgelig
ed1ec99688 Initial support for MiSTer Game Launcher (mgl) file. 2022-02-24 21:24:04 +08:00
Sorgelig
10e216a21e Some cleanup. 2022-02-19 00:57:24 +08:00
Aitor Gómez
33aa7393a1 Keyboard scancode set switching and set 1 support (#546)
This improvement allows the use of set 1 of keyboard scancodes, as well as the possibility of changing from one to another from the OS. Both core ao486 and new cores based on set 1 will benefit from this feature.

Thank you @naeloob for your cooperation and support in developing this feature.
2022-02-19 00:24:54 +08:00
Nolan Nicholson
ec174d41e9 GunCon 2: calibration menu/save/load (#524) 2022-02-04 15:36:20 +08:00
Nolan Nicholson
0d848c615b Acknowledge GunCon 2 as lightgun (#516) 2022-01-30 07:39:13 +08:00
Sorgelig
2b0b8a1422 input: fix alternative mapping if keyboard is used for confirmation. 2022-01-24 04:44:36 +08:00
Sorgelig
fa60c29eb5 input: use -128..+127 range for PSX. 2022-01-05 21:22:05 +08:00
Sorgelig
063cb52da1 input: clear whole map (incl. alternative buttons) at controller mapping start. 2021-11-29 14:09:59 +08:00
Sorgelig
d02099847b input: fix keyboard to joystick mapping. 2021-11-26 22:48:07 +08:00
Sorgelig
d3ffe5b38e input: fix key_menu_as_rgui option. 2021-11-12 19:39:48 +08:00
Sorgelig
43c19cb5b7 Merge branch 'master' of github.com:MiSTer-devel/Main_MiSTer 2021-10-10 19:12:01 +08:00
Sorgelig
be75d3d623 input: support for second analog stick. 2021-10-10 19:09:15 +08:00
Martin Donlon
aa3ef264ac Add /dev/MiSTer_cmd screenshot support (#472)
Sending "screenshot" to the MiSTer_cmd device will trigger a screenshot.
An exact png filename can be specified if desired.
2021-10-07 13:11:01 +08:00
Sorgelig
7abbf7f8f4 Support compilation in WSL Ubuntu 20.04 LTS. Fix some warnings. 2021-10-07 03:08:56 +08:00
sorgelig
2bac3df718 input: use X button on gamepad in file browser to go to parent folder. 2021-10-04 18:35:59 +08:00
sorgelig
50d6d15da7 input: use different maps for ControllaBLE based projects. 2021-10-04 18:07:37 +08:00
sorgelig
ac4ca198c5 input: consider controller with default map as configured. 2021-10-03 16:55:57 +08:00
sorgelig
95f9f468e3 input: check for MiSTer-A1/S1 in device name too, add special handling for ESP32 devices. 2021-09-27 23:49:17 +08:00