Commit Graph

1263 Commits

Author SHA1 Message Date
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
twinaphex 6630884254 (Emscripten) Simplify input driver's init function 2015-04-19 22:03:51 +02:00
twinaphex 1f7482d833 (Emscripten) Integrate header files into actual drivers 2015-04-19 22:01:56 +02:00
twinaphex c58355775c Rename apple_input_keyboard_event to cocoa_input_keyboard_event 2015-04-19 20:02:19 +02:00
Twinaphex 134289c496 (Apple) Buildfixes 2015-04-19 17:59:45 +02:00
twinaphex 8702141d90 (Cocoa) Start renaming input_apple to input_cocoa 2015-04-19 17:58:15 +02:00
twinaphex 723b9ba716 Add HAVE_IOHIDMANAGER 2015-04-19 15:59:20 +02:00
Twinaphex e9dd1603ab Merge pull request #1629 from lioncash/leak
libusb_hid: Fix a potential memory leak
2015-04-15 09:26:51 +02:00
Lioncash fff8ef3db7 libusb_hid: Fix a potential memory leak 2015-04-15 03:22:27 -04:00
Lioncash da56cb3071 dinput: Return NULL instead of false for dinput_get_joypad_driver 2015-04-15 03:08:57 -04:00
twinaphex 335097f98f (Emscripten) Buildfixes 2015-04-14 22:01:41 +02:00
twinaphex 6bf30bb714 (PS3) Buildfixes 2015-04-14 21:58:39 +02:00
twinaphex 8c6cce3945 Rename rarch_joypad_driver_t to input_device_driver_t 2015-04-14 16:37:59 +02:00
twinaphex 6db7115484 Start renaming 'Joypad' to 'Input Device' 2015-04-14 05:40:36 +02:00
twinaphex 0057510caf (libusb) Add disconnect message, change "Joypad" terminology to
'Device'
2015-04-14 05:36:43 +02:00
Toad King 7f229e57ab add hotplugging to libusb hid driver 2015-04-13 19:19:10 -05:00
twinaphex 090fddcdbe (Overlay) Refactor input_overlay_load_desc_image 2015-04-13 20:02:06 +02:00
twinaphex 6c5489e9c8 Rename get_ios_version_major 2015-04-13 18:20:05 +02:00
Twinaphex 2c53d57e9e (iOS) Refactor get_ios_version_major 2015-04-13 18:17:48 +02:00
twinaphex 0818b178f9 Rename rarch_main_command to event_command 2015-04-13 11:26:02 +02:00
Twinaphex de2eb5f972 Rename RARCH_CMD_* to EVENT_CMD_* 2015-04-13 10:29:15 +02:00
twinaphex 19260898eb Replace dynamic.h header dependencies to dylib.h header dependencies 2015-04-11 10:38:10 +02:00
twinaphex 341579f7b6 (input_driver.c) Cleanups 2015-04-11 08:17:55 +02:00
twinaphex 3eed6fd464 (input_driver.c) Cleanups/refactors 2015-04-11 08:14:45 +02:00
twinaphex 9cf1b96e95 Buildfix for input_keymaps.c 2015-04-11 01:20:52 +02:00
Alcaro 77dd981d21 Update input_keymaps.c 2015-04-11 00:49:02 +02:00
Alcaro 804a0f4378 Update input_keymaps.c 2015-04-11 00:47:21 +02:00
twinaphex 9d74dbdef6 Pass device pointer to input_remapping_state 2015-04-10 03:10:01 +02:00
twinaphex a0d0345f36 Create input_remapping_state 2015-04-10 02:46:10 +02:00
radius a68a97e2f7 save remap file saving when a config doesn't exist already 2015-04-09 18:45:50 -05:00
radius 54035aa758 make the settings correct 2015-04-09 17:49:40 -05:00
radius eef29b0355 try to include analogs in input remapping 2015-04-09 17:06:41 -05:00
Twinaphex ab87700597 (MFI) Forgot to commit MFi HID files 2015-04-09 17:26:42 +02:00
twinaphex 45cc15100c (xinput_joypad.c) Call dylib_close 2015-04-09 05:46:07 +02:00
twinaphex 1f23338ca4 Move win32_common.c to gfx/common 2015-04-09 05:16:02 +02:00
Twinaphex 94ceaa1b60 Merge pull request #1611 from aliaspider/master
(3DS) fix analog.
2015-04-08 23:24:41 +02:00
aliaspider c5aff59f1b (3DS) fix analog. 2015-04-08 22:18:44 +01:00
Twinaphex 45e3bef420 Merge pull request #1610 from aliaspider/master
(3DS) implement input correctly.
2015-04-08 22:54:47 +02:00
aliaspider 20b71c89c6 (3DS) implement input correctly. 2015-04-08 21:35:10 +01:00
twinaphex 88c300cb58 (xinput_joypad.c) Go through dylib_load 2015-04-08 20:12:50 +02:00
twinaphex 8290e89650 (xinput_joypad.c) Cleanups - go through dylib_proc 2015-04-08 07:48:23 +02:00
Twinaphex 4b01483482 Merge pull request #1603 from fr500/master
Override and remap improvements #2
2015-04-08 05:55:58 +02:00
radius a8a6057055 add OSD message for remap load 2015-04-07 22:51:31 -05:00
radius dd8b1faac4 add OSD message for remap saving too 2015-04-07 22:40:42 -05:00
twinaphex ddab95d1a6 (MSVC) Buildfix 2015-04-08 02:05:50 +02:00
twinaphex 78e5206e8f (DInput) Buildfix pt. 2 2015-04-08 02:04:02 +02:00
twinaphex 58321991b0 (DInput) Buildfix pt. 2 2015-04-08 02:02:59 +02:00
twinaphex ce6401f327 (DInput) Update 2015-04-08 02:02:10 +02:00
twinaphex 8cc8f855e1 (DInput) Split up dinput joypad into separate file 2015-04-08 01:58:09 +02:00
twinaphex 2087a41f20 (connect) Style nits 2015-04-07 18:49:21 +02:00
twinaphex ea7815bf32 (libusb) Cleanups 2015-04-07 18:24:16 +02:00
Toad King 9eb2dab4d4 fix crash in libusb_hid 2015-04-06 23:05:39 -05:00
Toad King 730be95302 stop threads before destroying pad_connections 2015-04-06 22:24:01 -05:00
Toad King 3c67a80713 fix crash on shutdown in libusb_hid 2015-04-06 22:21:28 -05:00
Toad King 5701f4f73a libusb updates, still need to figure out config issue preventing keys being registered 2015-04-06 22:07:59 -05:00
twinaphex 160c581df6 (XDK1) Cleanups 2015-04-06 20:47:29 +02:00
twinaphex 85c48f0c3d (input_common.c) Remove strings.h 2015-04-06 18:31:48 +02:00
twinaphex 101af7b1c9 (input_common.c) Add <strings.h> 2015-04-06 18:24:35 +02:00
twinaphex 39d371bcbb (PSP) Just autodetect first pad 2015-04-06 06:02:37 +02:00
twinaphex a670f3466c (libusb) libusb changes 2015-04-06 04:53:05 +02:00
twinaphex eaf2ea860a (PS3) Add hotplugging 2015-04-06 03:50:54 +02:00
twinaphex 965991ec72 (PS3) Add ps3_joypad_autodetect_pad 2015-04-06 03:21:40 +02:00
twinaphex 29b7785dd7 (XDK1) Add pad disconnected message 2015-04-06 02:30:27 +02:00
twinaphex b5e5dc58c2 (XDK1) Only add autodetect pad if pad inserted 2015-04-06 02:28:58 +02:00
twinaphex 9734b606b1 (XDK1) Only add autodetect pad if inserted 2015-04-06 02:24:08 +02:00
Twinaphex 7f58dedb46 Merge pull request #1588 from aliaspider/master
(3DS) video driver rewrite.
2015-04-05 21:44:23 +02:00
aliaspider 14ac3fe250 (3DS) use touch for menu toggle.
keep console visible on exit until start is pressed.
2015-04-05 20:39:18 +01:00
twinaphex 592e5d9f4a Change HAVE_WINXINPUT to HAVE_XINPUT 2015-04-05 20:54:46 +02:00
twinaphex ed9ad7c9d7 (windows) Change 'winxinput' to 'xinput' 2015-04-05 20:43:24 +02:00
Twinaphex 24cc0b5e4d (iOS) Move files around for MFi gamepad code 2015-04-05 15:41:41 +02:00
twinaphex b263df08f6 (joypad_connection.c) Cleanups 2015-04-04 23:44:02 +02:00
twinaphex 4c7c1094e2 (joypad_connection.c) Remove unused is_gcapi 2015-04-04 23:38:19 +02:00
twinaphex 35e273bcdb Make pad_connection_find_vacant_pad non-static 2015-04-04 23:34:04 +02:00
twinaphex 31b6323094 Move apple_joypad_connect_gcapi to apple_gamecontroller.m and
make it a static function
2015-04-04 23:33:01 +02:00
twinaphex 0651a925c1 (apple_input.h) Cleanups 2015-04-04 23:27:42 +02:00
radius 5e6cf7d74d windows build fixes 2015-04-04 13:56:26 -05:00
twinaphex 5b688ea8be Move keyboard_event files to input/drivers_keyboard 2015-04-04 20:42:16 +02:00
twinaphex 5bffebd203 (libusb_hid.c) Preliminary implementation of adapter_thread 2015-04-04 17:30:50 +02:00
twinaphex 52312b51a7 pad_connection_pad_init: improve detection 2015-04-04 16:42:38 +02:00
twinaphex a6056819cf (libusb_hid.c) Move pad_connection_init up in 'init' function 2015-04-04 16:32:06 +02:00