libretroadmin
963bb92f95
(Input) Style nits/code simplifications
2023-02-19 06:30:14 +01:00
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
2fde8c21a9
Remove set_rumble function from input driver
2020-09-02 00:38:11 +02:00
twinaphex
acc0f2143f
Change input_key_pressed so we no longer need to pass joypad
...
to the poll function callback
2020-09-01 21:43:39 +02:00
twinaphex
1d67ae3c63
Fix Android error
2020-09-01 17:41:05 +02:00
twinaphex
6f92c56ca3
Simplify input drivers
2020-08-31 02:07:43 +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
e6b9420a15
(Input) reorder structs, alignment
2020-08-26 15:32:05 +02:00
twinaphex
10abdc5a0e
Implement get_joypad_driver stub for Xenon 360
2020-06-23 17:35:39 +02:00
twinaphex
4a91b11806
Further input driver standardization
2020-06-12 18:28:07 +02:00
twinaphex
a7a03984f1
(input drivers) Cleanups
2020-06-10 04:00:40 +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
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
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
twinaphex
51365ed387
(input drivers) More simplifications
2019-06-23 02:34:35 +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
6b3dbff75f
Merge input_driver.c and input_joypad_driver.c
2017-06-06 05:56:02 +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
ce98a4dd19
Get rid of now unused input_driver_key_pressed
2016-10-29 04:57:28 +02:00
twinaphex
51b0e61712
Cleanups
2016-09-11 16:24:02 +02:00
twinaphex
5dc4a730d2
(Xenon 360) Get rid of lifecycle_state
2016-08-02 17:05:58 +02:00
twinaphex
4a7ab8366b
Move libretro.h headers to libretro-common/include
2016-05-10 19:03:53 +02:00
twinaphex
347a18cb30
Update input headers
2016-01-10 04:33:01 +01:00
Twinaphex
57e8cfe1f9
Totally reimplemented MFi support
2015-11-16 02:39:38 +01:00
twinaphex
22f85b11df
Don't need this anymore
2015-11-07 20:59:12 +01:00
twinaphex
6ac88eed54
Cleanups
2015-10-23 08:34:15 +02:00
twinaphex
1a20e19c51
We will now be able to know from which input device type the input
...
event comes from - i.e. keyboard or gamepad
2015-10-22 19:17:47 +02:00
twinaphex
94c3546e71
More static code analysis cleanups
2015-09-28 22:03:16 +02:00
twinaphex
450c665619
Create meta_key_pressed
2015-07-17 03:31:51 +02:00
twinaphex
135ee2f503
Use UINT64_C(1) everywhere instead of 1ULL
2015-07-12 07:53:46 +02:00
twinaphex
25ffeb1ed9
(Xenon) Don't depend on global state in input driver
2015-07-10 18:45:22 +02:00
twinaphex
0e046c2fbb
Create input_driver_keyboard_mapping_is_blocked/input_driver_keyboard_mapping_set_block
2015-06-19 03:45:23 +02:00
twinaphex
3a7263020a
Add grab_stdin function pointer to input driver - avoids threading
...
segfault at exit with linuxraw input driver to do with driver->stdin_claimed
2015-05-19 19:33:58 +02:00
twinaphex
30a0e99972
(Input) Implement function pointers 'set_rumble' and 'grab_mouse'
...
always to prevent conditional checks
2015-03-24 07:51:50 +01:00
twinaphex
5a443d229a
global_get_ptr update pt. 2
2015-03-21 05:42:49 +01:00
twinaphex
76ad6cc344
Move input drivers to input/drivers
2015-01-12 06:16:52 +01:00