2520 Commits

Author SHA1 Message Date
twinaphex
0da40fb3aa Move all float settings 2017-04-28 14:57:55 +02:00
twinaphex
7a152700fa Update 2017-04-28 14:31:23 +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
twinaphex
b9f110679a Remove unused variable 2017-04-27 21:38:39 +02:00
twinaphex
1bf7cbccbe input_device_names no longer part of settings struct 2017-04-27 21:35:46 +02:00
Francisco José García García
be87a8cdc7 [VITA] Fixing PSTV controls 2017-04-26 22:26:41 +02:00
twinaphex
549ed6fc6b (Android) Buildfix 2017-04-26 15:43:16 +02:00
Twinaphex
c51e4397b0 remove unused variable 2017-04-26 03:00:21 +02:00
twinaphex
3dc26db377 Simplify libretro_input_binds 2017-04-26 02:43:39 +02:00
twinaphex
58fcf421b5 Simplify input_poll 2017-04-26 02:35:41 +02:00
twinaphex
e179108080 Cleanups 2017-04-26 00:24:59 +02:00
twinaphex
a146dfee79 Use input_config_binds directly 2017-04-25 23:47:23 +02:00
twinaphex
33dda78ea8 Cleanups 2017-04-25 23:32:38 +02:00
twinaphex
fc5d240297 Get rid of some now-unused functions 2017-04-25 23:30:50 +02:00
twinaphex
f0eaef9d51 Cleanups 2017-04-25 22:14:56 +02:00
twinaphex
3087ceb482 Don't go through all these slow wrapper functions 2017-04-25 20:47:21 +02:00
twinaphex
5f9f43929a Turn settings->input.binds into static struct inside input_config.c 2017-04-25 18:54:01 +02:00
twinaphex
53c9acacd6 Wrap access to settings->input.binds completely 2017-04-25 18:50:49 +02:00
twinaphex
c68c8a8cfe Rewrite this 2017-04-25 18:48:06 +02:00
twinaphex
87f05b3a7b Cleanups 2017-04-25 18:32:08 +02:00
twinaphex
8d0e3d7777 Wrap settings->input.binds 2017-04-25 18:27:18 +02:00
twinaphex
4845c4b4db Cleanup 2017-04-25 18:20:10 +02:00
twinaphex
3b3b008614 Move code to input_config_reset 2017-04-25 18:18:37 +02:00
twinaphex
d66aff8fbd Start wrapping settings->input.binds 2017-04-25 18:12:13 +02:00
twinaphex
e1e83b17b7 Wrap settings->input.libretro_device 2017-04-25 17:14:46 +02:00
twinaphex
c871faa1f5 Move pid/vid arrays out of settings struct and move them
to input_config
2017-04-25 16:49:54 +02:00
twinaphex
6ace8ce66a Rewrite autoconf_binds and move it to task_autodetect.c - take
it out of the settings struct
2017-04-25 16:33:30 +02:00
twinaphex
20ed6eb90a Start using input_config_get_device_name 2017-04-25 16:04:28 +02:00
twinaphex
f4b168f9b6 Call functions from task_autodetect.c 2017-04-25 15:53:30 +02:00
twinaphex
1c93cc4b18 Update logs 2017-04-23 12:00:49 +02:00
twinaphex
f9bc2d3783 Use memcmp instead of string_is_equal where possible for
better performance
2017-04-21 22:47:15 +02:00
twinaphex
271edb4ca1 We don't want uppercase for these instances 2017-04-21 14:26:35 +02:00
twinaphex
d1664481c2 Don't call input_remote_state unless pointer is non-NULL 2017-04-20 10:57:09 +02:00
twinaphex
69a3bf6a31 Create bsv_movie_is_playback_{on|off} 2017-04-20 10:40:11 +02:00
twinaphex
f4071ba6ec Set axis_threshold 2017-04-18 05:11:44 +02:00
radius
d70d04c473 improve shield portable hack 2017-04-16 16:48:37 -05:00
twinaphex
7f4b490fdb Prevent implicit memsets with struct video_viewport 2017-04-15 19:43:52 +02:00
Tatsuya79
5649f084e3 Make mouse relative again. 2017-03-31 17:28:49 +02:00
Jean-André Santoni
0b05fdf0b5 (Input) Fix shift release in xkb 2017-03-13 00:52:42 +01:00
twinaphex
58c08c0c02 Cleanups 2017-02-27 09:33:20 +01:00
Twinaphex
b7b3b2cb5f Try to prevent truckload of warnings on iOS 2017-02-26 10:33:03 +01:00
Twinaphex
aa2e7dc794 Silence warning 2017-02-26 03:53:05 +01:00
David Erickson
da8662bb4a Detect non-standard joystick buttons
The Xbox One S controller when connected via Bluetooth
is exposing its select button with the Linux KEY_BACK
code, which is outside of the normal input code
scan range for joysticks.  This patch adds additional
scanning to pick up such extra buttons, and adds
them as buttons after the normal ranges to preserve
compatibility with existing key mappings.
2017-02-24 01:09:15 -08:00
twinaphex
75188800b1 Use C comments 2017-02-19 04:37:40 +01:00
Diablodiab
2cbd1898e8 Android input driver mouse support fixes:
- Fix bug with cursor moving down to the right
- Remove handling of "copy" and "thread" input states simplifying the driver
2017-02-19 02:57:28 +01:00
Diablodiab
47d5242dd7 Add middle mouse button support to Android input driver
Add lightgun support to Android input driver
2017-02-16 21:52:52 +01:00
Diablodiab
4f039cac22 This adds external mouse support to the Android input driver. It also adds support for using the touch screen as mouse in cores with mouse support (eg. ScummVM).
It has been tested with the ScummVM core on:
- NVIDIA Shield TV running Android Nougat 7.0
- NVIDIA Shield Tablet running Android Nougat 7.0
- NVIDIA Shield Tablet running Android Lollipop 5.1
- Huawei Honor 7 running Android Marshmallow 6.0
- HTC Desire 500 running Android Jelly Bean 4.1

It's been tested using the touch screen, a USB mouse/keyboard combo, and a bluetooth mouse.

The Android version running on the device limits the functionality and user experience of the external mouse support.
Android Nougat and/or an NVIDIA SHIELD device with NVIDIA extensions provides the best user experience:

Android API < 14:
- Only left mouse button supported
- The Android mouse cursor will be visible along with the in game mouse cursor
- When the Android mouse cursor hits the edge of the screen it will not be possible to move the in-game mouse cursor further in that direction

Android API < 24 and no NVIDIA extensions available:
- Both left and right mouse buttons supported
- The Android mouse cursor will be visible along with the in game mouse cursor
- When the Android mouse cursor hits the edge of the screen it will not be possible to move the in-game mouse cursor further in that direction

Android API > 23 and/or NVIDIA extensions available (SHIELD devices):
- Both left and right mouse buttons supported
- The Android mouse cursor will be hidden
- The mouse is not limited by the (hidden) Android mouse cursor hitting the edge of the screen

Description of how the the touchscreen mouse support works:
- You can move the in-game mouse cursor using the touch screen. The in-game mouse cursor will move relative to your movements on the touch screen, it will not be centered on where you press the screen.
- One quick tap on the touch screen results in the left mouse button being clicked
- Two taps on the screen and keeping the second tap pressed down results in a left mouse being held down until you release
- Two fingers on the touch screen results in the right mouse button being clicked

The touch screen mouse functionality is active at the same time as overlay support. This might cause some confusion when using cores that are designed for mouse support but where you have also enabled overlay controls. At the top of android_input.c there's a define that can be used to turn off this functionality if it causes more problems than it solves.
2017-02-14 22:34:46 +01:00
xhp-creations
b04bf809e3 WiiU Fix Keyboard Input
WiiU Fix Keyboard Input
2017-02-09 14:08:27 -05:00
xhp-creations
4915f452f5 WiiU Initial Keyboard Support
WiiU Initial Keyboard Support
2017-02-09 12:34:12 -05:00