neil4
b98c53ddb7
Improve haptic feedback for input overlays ( #14517 )
...
Repurpose vibrate_on_keypress to enable device's standard keypress feedback on overlay key/button state changes
- Add keypress_vibrate function ptr to input_driver_t (only implemented on Android for now)
- (Android) Remove APP_CMD_VIBRATE_KEYPRESS
- (Android) Add doHapticFeedback, called directly to avoid latency
2022-10-16 09:58:09 +02:00
twinaphex
47ad4da310
Don't free userdata for these drivers inside the destroy function
...
as they don't have userdata
2020-09-11 11:50:00 +02:00
twinaphex
2c97878851
(Input drivers) Cleanups - if we don't need userdata and it's just
...
empty then just pass (void*)-1 to init function
2020-09-11 11:45:01 +02:00
twinaphex
3f566fd54e
Don't implement input_state for input drivers that don't need it
2020-09-02 17:37:01 +02: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
a72759aba0
(input drivers) Cleanups
2020-09-02 05:26:24 +02:00
twinaphex
55378ae9cc
Cleanups
2020-09-02 01:22:34 +02:00
twinaphex
2fde8c21a9
Remove set_rumble function from input driver
2020-09-02 00:38:11 +02:00
twinaphex
d4d8b6934a
Put keyboard_mapping_blocked into p_rarch / rarch struct
...
instead
2020-08-30 18:47:29 +02:00
twinaphex
5f08605680
Refactor joypad drivers
2020-08-30 05:29:32 +02:00
twinaphex
84a312535e
Cleanup set_rumble functions
2020-08-29 22:22:26 +02:00
twinaphex
d97e590aaf
Reimplement multi button state functions
2020-07-19 03:18:12 +02: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
d998f86f1f
Cleanups
2020-06-12 18:41:09 +02:00
twinaphex
4a91b11806
Further input driver standardization
2020-06-12 18:28:07 +02:00
twinaphex
eb78b608d3
Cut down on code duplication
2020-06-12 00:50:08 +02:00
twinaphex
8cc220a4d2
(CTR) Buildfix
2020-06-11 20:59:35 +02:00
twinaphex
dee0c5dbca
CTR buildfix + cleanups
2020-06-11 19:33:27 +02:00
twinaphex
a7a03984f1
(input drivers) Cleanups
2020-06-10 04:00:40 +02:00
MrHuu
92dc0dc6d0
(3DS) Allow button presses up to INPUT_MAX_USERS
...
This enables the 3DS to bind and use buttons and axis for users up to the maximum set by 'Max Users' in the input settings menu.
2020-04-21 20:52:49 +02:00
twinaphex
26b3ccf2e5
Don't pass joypad_info by value
2020-02-27 07:33:14 +01:00
twinaphex
65b4c2595e
Update set keyboard mapping code for input driver
2019-07-27 02:21:24 +02:00
twinaphex
bee9984745
Update all other input drivers
2019-07-22 01:20:00 +02:00
twinaphex
f4104f5c9a
Regression in
...
9c73d3305d
- joykey needs to be uint64_t and then is later cast to uint16_t -
is apparently important for hotkeys
2019-07-21 16:22:41 +02:00
twinaphex
4c69dad0ce
Define DEFAULT_MAX_PADS inside config.def.h - get rid of the messy
...
MAX_PADS macros everywhere
2019-07-19 12:55:38 +02:00
twinaphex
9c73d3305d
Insert input_joypad_pressed into drivers themselves
2019-06-23 18:20:48 +02:00
twinaphex
1e863b0f4d
Optimal way of grabbing all button states in a bitmasked value -
...
should allow us to do only one function call to the RA input
driver's input state callback
2019-06-23 06:09:45 +02:00
orbea
28ff4b391a
Clean up white space.
2019-02-03 16:00:50 -08:00
twinaphex
ea09c29e04
Update implementations for other input drivers - not all input
...
drivers support this yet
2018-07-15 14:34:02 +02:00
twinaphex
69f85556a3
Get rid of meta_key_pressed
2017-12-18 05:59:57 +01:00
gblues
6904101c44
Clean up trailing whitespace
...
== DETAILS
Really simple code cleanup, because my editor flags trailing whitespaces
and it's pretty annoying.
2017-12-12 00:24:18 -08:00
twinaphex
a3ded01b64
Cleanups
2017-09-27 23:16:37 +02:00
twinaphex
e16371b8a5
Merge input_config.c and input_driver.c
2017-08-31 02:25:04 +02:00
twinaphex
6b3dbff75f
Merge input_driver.c and input_joypad_driver.c
2017-06-06 05:56:02 +02:00
aliaspider
ffbd1e838a
(3DS) build fix.
2017-01-31 03:27:26 +01:00
twinaphex
96c8ca5a09
Header update #1
2017-01-22 13:40:32 +01:00
twinaphex
cd105e7432
(CTR) Buildfix
2017-01-10 22:45:53 +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
twinaphex
b9945f05f1
Pass joypad_info to input_joypad_analog
2017-01-10 03:53:57 +01:00
twinaphex
6376f2af68
Add rarch_joypad_info_t
2017-01-10 03:44:53 +01:00
twinaphex
ce98a4dd19
Get rid of now unused input_driver_key_pressed
2016-10-29 04:57:28 +02:00
twinaphex
d246d320c7
Get rid of messy 'all_users_control_menu' hack - will be dealt
...
with better once menu_input branch has been merged
2016-10-27 07:00:13 +02:00
twinaphex
8ce882c829
Should hopefully fix most of the remaining issues
2016-10-26 10:29:26 +02:00
twinaphex
647ffca76c
Optimize input_joypad_pressed code
2016-10-23 20:37:12 +02:00
twinaphex
51b0e61712
Cleanups
2016-09-11 16:24:02 +02:00
twinaphex
012e069f86
Get rid of general.h includes
2016-09-11 13:21:56 +02:00
twinaphex
acd4dd527b
Header include cleanups
2016-09-05 18:31:32 +02:00
Brad Parker
a17679a0c5
add input option to allow any user to control the menu
2016-09-03 19:01:29 -04:00