gblues
1beba28d02
Only call HIDSetup/HidTeardown once
...
== DETAILS
I did a minimalist edit of the HID thread that stripped out all
HID* syscalls, and this stopped the crashing. I then re-added just
the HIDSetup() and HIDTeardown() calls, and the crash came back.
This smells like an OS bug. To work around it, I've put the
HIDSetup() and HIDTeardown() calls into the app init/shutdown
section, so they only get called once in the application lifetime
and not each time the input driver is initialized.
2017-12-30 04:40:15 +01:00
Nathan Strong
e80d99dbae
Delete controller_patcher; start on proper HID driver
...
== DETAILS
We discovered that the controller_patcher code was causing
the WiiU to intermittently crash when switching ROMs.
Changes:
- Completely extricates the controller_patcher code
- Create a skeleton wiiu_hid driver
- Wire up the build system to build/link it successfully
== TESTING
Has not been tested. Probably doesn't crash, since the
skeleton driver is just a copy of the null driver.
2017-12-30 04:38:57 +01:00
twinaphex
d49b7b28b6
input_poll - cleanup
2017-12-29 23:12:35 +01:00
twinaphex
a6afddae04
current_input_data and current_input are no longer globals
2017-12-29 23:03:25 +01:00
misson20000
6d2a7b1f26
Nintendo Switch (libtransistor) port
2017-12-29 00:10:01 +01:00
twinaphex
95e807749d
Simplification/cleanup
2017-12-18 07:09:44 +01:00
twinaphex
422ce9396c
Cleanup - input_key_pressed
2017-12-18 06:14:48 +01:00
twinaphex
69f85556a3
Get rid of meta_key_pressed
2017-12-18 05:59:57 +01:00
twinaphex
7b210ccf37
Don't call meta key pressed if not bound
2017-12-18 05:49:17 +01:00
twinaphex
1978689dcb
Rewrite input_keys_pressed_iterate
2017-12-18 05:22:45 +01:00
twinaphex
9b9cf7b036
Cleanups
2017-12-18 05:13:57 +01:00
twinaphex
3c5d2f047c
Create input_keys_pressed_iterate
2017-12-18 05:09:16 +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
Monroe88
cfde6a44db
input_driver: Map Delete key to Y button for non-unified menu keyboard controls
2017-12-09 14:17:54 -06:00
David Walters
609bcb4dc2
fix device indexing
2017-12-05 22:03:56 +00:00
David Walters
0d189ae067
Don't limit available input devices to user count.
2017-12-05 21:21:29 +00:00
twinaphex
f0c143766e
Change to 256bit macros
2017-12-05 12:07:35 +01:00
twinaphex
e94300a581
Get rid of a lot of RARCH_INPUT_STATE_BIT_ macros - replace them
...
with BIT128_ equivalents instead
2017-12-05 09:22:56 +01:00
neville
43f6a03110
(OSX PPC) Buildfixes
2017-12-04 02:59:06 +01:00
twinaphex
cdf1d9a417
Indent nits
2017-11-27 03:53:46 +01:00
Twinaphex
d93b9ebf4d
Silence warning
2017-11-27 03:53:25 +01:00
twinaphex
dfebea9109
Cleanups
2017-11-26 22:58:36 +01:00
twinaphex
00d57af005
C89_BUILD fixes
2017-11-26 22:53:42 +01:00
twinaphex
e35394d4bd
Fix MSVC 2003 build
2017-11-26 22:41:34 +01:00
David Walters
dbd9bf3b46
New lightgun binds
2017-11-26 16:59:48 +00:00
David Walters
c733f96a16
listen for mouse buttons/wheel when binding input
2017-11-26 15:42:47 +00:00
David Walters
59812e9509
include mouse buttons in block hotkey check
2017-11-26 13:23:39 +00:00
David Walters
25efae0630
Show mbutton binds on settings list; comma separate joy and key bins
2017-11-26 11:56:02 +00:00
David Walters
1d70fef70c
load/save mbutton assignments to retroarch config
2017-11-26 11:54:10 +00:00
David Walters
b3a53ac8ca
Show "---" for unbound controls, not "(Key: )"
2017-11-24 21:36:49 +00:00
Twinaphex
45fb685375
Merge pull request #5762 from hiddenasbestos/extend_input_bits
...
Extend input bind limit to 256
2017-11-24 14:48:53 +01:00
David Walters
5be7921445
reimplement using retro_bits_t; pass by ref; raise bind limit to 256
2017-11-24 11:19:17 +00:00
twinaphex
7ac5eda1e1
Rewrite input_mapper code - no longer have an internal pointer
...
inside input_mapper
2017-11-24 02:37:53 +01:00
David Walters
b0e383d5f0
Extend input bind limit to 128
2017-11-23 23:04:09 +00:00
David Walters
795057bacf
Support for RETRO_DEVICE_INDEX_ANALOG_BUTTON
2017-11-17 22:46:23 +00:00
twinaphex
c68db61188
Silence more Clang warnings
2017-10-11 22:49:13 +02:00
twinaphex
fcf6228dce
Turn into char pointer array
2017-09-27 20:11:44 +02:00
twinaphex
b79f95668b
Turn it into char pointer array
2017-09-27 20:08:37 +02:00
radius
551d85630e
android build fixes
2017-09-11 00:21:48 -05:00
radius
9abbf47a8d
fix defaults
2017-09-11 00:21:47 -05:00
radius
cd72bd1bb4
implement keymapper
2017-09-11 00:20:21 -05:00
radius
fe8a0657b4
add input_mapper scafolding
2017-09-11 00:20:20 -05:00
twinaphex
3b26263126
Cleanup input_config_get_prefix
2017-09-08 06:28:40 +02:00
twinaphex
d6bcc45bb8
Reduce size of input_bind_map member variables
2017-09-08 06:11:19 +02:00
twinaphex
c3bb76a05e
Try to reduce variable sizes
2017-09-08 05:58:48 +02:00
twinaphex
24dc35d97b
Cleanups
2017-08-31 12:17:06 +02:00
twinaphex
44a1a429c8
Change type of pid/vid to uint16_t
2017-08-31 12:14:27 +02:00
twinaphex
e16371b8a5
Merge input_config.c and input_driver.c
2017-08-31 02:25:04 +02:00
twinaphex
914acd3956
Revert "Get rid of some warnings"
...
This reverts commit 3d45ba29d8
.
2017-06-18 20:02:50 +02:00
twinaphex
b134c5d23c
Revert "Set joypad_info.axis_threshold only once"
...
This reverts commit 605d877279
.
2017-06-18 20:01:48 +02:00
twinaphex
605d877279
Set joypad_info.axis_threshold only once
2017-06-18 19:56:31 +02:00
twinaphex
3d45ba29d8
Get rid of some warnings
2017-06-18 19:47:40 +02:00
twinaphex
895c817fa5
ifdef this
2017-06-11 19:56:14 +02:00
twinaphex
5e0e970c92
Cleanups
2017-06-11 19:48:40 +02:00
Brad Parker
42e56c8432
fix all_users_control_menu logic
2017-06-11 12:28:47 -04:00
twinaphex
0751cb238d
Add HAVE_HID ifdefs
2017-06-11 18:12:38 +02:00
twinaphex
060753258a
Combine input_driver.c and input_keyboard.c
2017-06-11 17:51:12 +02:00
twinaphex
5081d03194
Cleanups
2017-06-11 16:26:27 +02:00
twinaphex
7e9cb39519
Use BIT64_SET
2017-06-11 16:24:24 +02:00
twinaphex
612cb54cfe
Merge input_hid_driver
2017-06-11 08:56:36 +02:00
twinaphex
5d78c2209f
Remove obsolete header
2017-06-06 08:30:01 +02:00
twinaphex
efdfb29d50
Turn input_joypad_is_pressed into static inline function
2017-06-06 08:12:53 +02:00
twinaphex
7685f93d00
input_menu_keys_pressed - don't use input_joypad_pressed
2017-06-06 07:59:41 +02:00
twinaphex
6b3dbff75f
Merge input_driver.c and input_joypad_driver.c
2017-06-06 05:56:02 +02:00
twinaphex
4f678dfdfc
Cleanups
2017-05-25 15:04:55 +02:00
Brad Parker
a04b54006d
win32: disable winraw input driver for targets older than XP
2017-05-23 21:03:00 -04:00
twinaphex
80b5bcd16c
Cut down on some code duplication
2017-05-24 02:02:01 +02:00
Twinaphex
79d35d158a
Use variable
2017-05-22 14:16:48 +02:00
twinaphex
98a3d80e71
Cleanups
2017-05-22 13:57:13 +02:00
twinaphex
ec79d8c46a
Cleanups - don't keep setting joypad_info members needlessly - do
...
it once
2017-05-22 12:49:12 +02:00
twinaphex
371c3e56de
Get rid of empty function
2017-05-22 12:43:50 +02:00
twinaphex
10df6d3b54
Rewrite pressed functions
2017-05-22 12:40:19 +02:00
twinaphex
f62490b14f
Don't have inline static functions
2017-05-22 12:34:34 +02:00
twinaphex
d48ec2a9e6
Turn conditional into else if
2017-05-22 12:24:23 +02:00
twinaphex
d78e1da956
Cut down on code duplication
2017-05-22 12:21:11 +02:00
twinaphex
e7d3f36a22
Call input_driver_pressed_keys_internal only once
2017-05-22 12:15:20 +02:00
twinaphex
70bbe92154
Simplify input_menu_keys_pressed
2017-05-21 22:32:29 +02:00
twinaphex
d7de9facc3
Simplify input_keys_pressed
2017-05-21 22:31:15 +02:00
twinaphex
77d83b4782
Cleanups
2017-05-21 21:55:20 +02:00
twinaphex
8bf552dacd
Move this code to retroarch.c
2017-05-21 21:42:13 +02:00
twinaphex
f8f25602e8
Get rid of old_input variable
2017-05-21 21:24:01 +02:00
twinaphex
a35e452ec3
Use trigger_input only for menu
2017-05-21 21:19:07 +02:00
twinaphex
68ecade37d
Revert "Call button combo toggle for quick menu toggle from runloop_check_state"
...
This reverts commit 4d4b00f877
.
2017-05-21 20:57:36 +02:00
twinaphex
4d4b00f877
Call button combo toggle for quick menu toggle from runloop_check_state
2017-05-21 20:53:33 +02:00
twinaphex
3e00c632bd
Pass value instead of pointer
2017-05-21 20:47:53 +02:00
twinaphex
136a435c43
Fix keys while in binding mode
2017-05-21 20:42:46 +02:00
twinaphex
0742ebec21
Get rid of local_enable variable
2017-05-20 16:32:57 +02:00
Zoran Vuckovic
1bc945e3dc
Add Windows raw input driver
2017-05-18 18:48:41 +02:00
twinaphex
a0fcbf85a1
Cleanup
2017-05-18 09:36:59 +02:00
Twinaphex
cc9e951b44
Cleanup
2017-05-11 07:37:20 +02:00
twinaphex
2906bec7a8
Create input_driver_get_uint
2017-05-11 07:36:21 +02:00
twinaphex
ef8094836f
Create input_driver_get_float
2017-05-10 07:07:06 +02:00
twinaphex
bac9973354
Cleanups
2017-05-09 00:58:01 +02:00
twinaphex
d9c5013d42
Pass settings struct around
2017-05-06 06:46:48 +02:00
twinaphex
ac7f1cc5e2
C89_BUILD buildfix
2017-04-29 14:06:08 +02:00
twinaphex
f0c2d786ae
Update arrays struct
2017-04-28 22:59:13 +02:00
twinaphex
05e4ec733e
Move uint variables
2017-04-28 21:03:04 +02:00
twinaphex
0da40fb3aa
Move all float settings
2017-04-28 14:57:55 +02:00
twinaphex
ed53be7c81
Move all bool settings
2017-04-28 14:11:34 +02:00
twinaphex
eb34553fae
Cleanup
2017-04-27 21:40:31 +02:00