Commit Graph

1242 Commits

Author SHA1 Message Date
Toad King
0cd7562fb8 allow remapping of analog axis, only works axis to axis 2015-05-20 21:11:42 -05:00
twinaphex
969bbdd85d Get rid of some unused runloop variables 2015-05-20 03:13:42 +02:00
twinaphex
375c49b6c8 Move is_menu out of runloop struct and create get/set functions in menu_driver.c
and make the underlying variable static to make it thread-safe
2015-05-19 20:11:57 +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
d662ac187d (linuxraw_input.c) Cleanup some function names 2015-05-19 19:26:20 +02:00
Higor Eurípedes
ae52f0f5c9 (x11) Fix binding of numpad keys 2015-05-15 10:51:51 -03:00
Higor Eurípedes
6c3bf5c27e (x11) Set RETROKMOD_NUMLOCK on keypad-triggered key events 2015-05-15 10:51:50 -03:00
Toad King
0112847082 fix hotplug detection on wii 2015-05-12 20:34:54 -05:00
twinaphex
7242693e69 (Android) Go back to old input code 2015-05-09 09:38:45 +02:00
Twinaphex
1529620c66 Revert "improve autodetection of input gamepads" 2015-05-08 17:25:55 +02:00
pamapa
ff286a9579 make sure the best configuration file wins, if there is more than one,
because the name is not unique. We look as long as we have a perfect match,
if not the latest config file which matches the name will win
2015-05-08 17:01:07 +02:00
twinaphex
87d9834d06 Move dylib.c to libretro-common 2015-05-08 09:49:49 +02:00
twinaphex
f02ef849ae (HID) Fixup 2015-05-06 04:10:49 +02:00
twinaphex
f57132ff6f Protect against failed pad init 2015-05-06 04:03:00 +02:00
Twinaphex
7356e7f4e7 Merge pull request #1666 from fr500/master
make autoconfig keep searching for an exact match even if a partial matc...
2015-05-02 22:53:34 +02:00
twinaphex
4a7fbf728a (Android) Put AInputQueue_hasEvents while loop back 2015-05-02 07:59:06 +02:00
twinaphex
ff6babc22a (Android) Start using android_main_poll 2015-05-02 07:06:57 +02:00
twinaphex
5b733c019a (Android) Only copy over state when needed 2015-05-02 04:41:18 +02:00
twinaphex
9a1c90a554 (Android) android_run_events - change signature 2015-05-02 03:52:28 +02:00
twinaphex
ec319a2c76 (Android) Start preparing engine_handle_input and engine_handle_cmd for
input sources
2015-05-02 02:13:16 +02:00
twinaphex
78fcd0312f (Android) Change signature of android_main_poll 2015-05-02 01:05:21 +02:00
twinaphex
2f08c143ec (Android) Cleanups 2015-05-02 00:43:24 +02:00
twinaphex
fe5d4e34ab (Android) Native app glue - use pthread again 2015-05-02 00:13:28 +02:00
twinaphex
5a2c6aa5d6 (Android) Create android_app_read_cmd 2015-05-01 23:59:23 +02:00
twinaphex
2cc348a75b (Android) Create android_app_userdata 2015-05-01 20:21:52 +02:00
twinaphex
00bf83e575 (Android) Minor cleanups 2015-05-01 18:24:06 +02:00
twinaphex
349a5890e4 (Android) Set lookup name function pointer at the beginning of the app's
start
2015-05-01 18:20:52 +02:00
twinaphex
8ec5db66cf (Android) Move state around 2015-05-01 18:11:34 +02:00
twinaphex
5e5453488f (Android) Move thread state to android_app 2015-05-01 17:25:26 +02:00
radius
1b5f09a493 make autoconfig keep searching for an exact match even if a partial match has been found 2015-04-30 16:28:07 -05:00
Twinaphex
561ae13146 (Android) Cleanups to handle_hotplug 2015-04-29 07:58:19 +02:00
twinaphex
63cc866425 (Android) Don't use AInputQueue_hasEvents - seems to make it more reliable
and less susceptible to ANRs
2015-04-29 06:21:18 +02:00
twinaphex
4b289e361d Revert "(Android) Put input event queue on separate thread"
This reverts commit 828421b46b.
2015-04-29 05:59:40 +02:00
twinaphex
828421b46b (Android) Put input event queue on separate thread 2015-04-29 05:43:05 +02:00
twinaphex
5c5e517b68 (Android) Start copying state copy at poll function call 2015-04-29 04:57:24 +02:00
twinaphex
cf1d56dbda (Android) Put input state code on android_input_state_t 2015-04-29 04:48:34 +02:00
twinaphex
c3bfa72e6f (Android) Start putting input state on separate struct 2015-04-29 04:17:31 +02:00
twinaphex
1a591baaf3 (Android) Cleanups 2015-04-29 03:08:44 +02:00
twinaphex
5df896dfd1 (Android) Rename "android_input" ident to "android" 2015-04-29 02:49:23 +02:00
twinaphex
4cf9227640 (Android) Move all input to android_input.c 2015-04-29 02:48:17 +02:00
twinaphex
71f43f8bf0 (Android) Cleanups 2015-04-29 01:50:58 +02:00
Christopher J. Gilbert
cf2623a65a Added check to make sure ident was not an empty string.
Added check to make sure ident was not an empty string.

This commit is to fix a bug related to having a autoconfig.cfg file without an ident.
Currently, there are none in the repository that fit this condition, which is why the bug was never triggered in testing. 

This checks to make sure the ident loaded from the config file actually has a value associated with it.
Without this check, the if() statement will always return true, because an empty string is always within another string.
2015-04-21 23:06:21 -04:00
Christopher J. Gilbert
f1186ff01c Autoconfigure - Change equals to starts with ident
This allows for Bluetooth PS3 controllers (and other bluetooth controllers) to be automatically detected.

In the input_try_autoconfigure_joypad_from_conf function, there is a string comparision between the input's name "params->name" and the configuration's name "ident".  Specifically on Bluetooth controllers, the uuid is appended to the end of the name.  
This enhancement will change the checking for name match from an equals comparision, to a startswith.
2015-04-21 03:24:19 -04:00
twinaphex
4b63cb54c9 (Android) Input - cleanups 2015-04-21 02:58:12 +02:00
twinaphex
f3b76f6748 (Android) Style nit 2015-04-21 02:46:50 +02:00
Twinaphex
d2abe61e30 (joypad_connection.c) pad_connection_has_interface - pad >= 0 would
always be true
2015-04-20 12:12:32 +02:00
Twinaphex
1fb00bdac3 Add HAVE_IOHIDMANAGER to qb/config.libs.sh 2015-04-20 12:04:31 +02:00
Twinaphex
f506e722b1 (Apple) Rename apple_hid to iohidmanager_hid 2015-04-20 11:52:10 +02:00
twinaphex
59a87836c4 (Apple) Fix one warning 2015-04-20 00:49:00 +02:00
twinaphex
1477ce04b7 (Apple) Use HAVE_COCOA/HAVE_COCOATOUCH defines 2015-04-20 00:41:02 +02:00