Commit Graph

2919 Commits

Author SHA1 Message Date
Alcaro 10e0411b21 Thanks Coverity, but no, this one cannot be null. 2016-06-30 16:10:58 +02:00
radius a1cf6f29f4 fix map and remove stray printf 2016-06-29 12:23:26 -05:00
radius 298b753e41 fix button map 2016-06-29 09:58:27 -05:00
twinaphex b8ac629fbf Get rid of dereference before null check warning 2016-06-29 12:19:23 +02:00
twinaphex 2a9bf91e0d Use MENU_ENUM_LABEL_VALUE_NOT_AVAILABLE 2016-06-29 02:40:05 +02:00
twinaphex fa7eb9d8c8 Create file_path_str FILE_PATH_NUL 2016-06-28 11:10:30 +02:00
Twinaphex a68a33c559 Remove unused variable 2016-06-27 06:43:47 +02:00
twinaphex 465ac5707c Add HAVE_NETWORKGAMEPAD 2016-06-27 06:38:47 +02:00
twinaphex eea287d156 (BTStack HID) Create HAVE_DYNAMIC ifdefs 2016-06-27 01:11:49 +02:00
twinaphex e0114e08ba Add type to retro_input_t 2016-06-25 09:05:56 +02:00
twinaphex 3dff698644 Turn retro_input_t into struct 2016-06-25 09:04:00 +02:00
twinaphex 114cc081aa Avoid warning 'variable may be used uninitialized' 2016-06-20 02:45:07 +02:00
twinaphex 7c904d47c2 Cleanups 2016-06-11 21:51:28 +02:00
twinaphex cf996f724e Rename HAVE_NETWORK_GAMEPAD to HAVE_NETWORKGAMEPAD - and
don't bake it in for the C89 build
2016-06-07 15:23:07 +02:00
twinaphex afe67ca254 C89/C90 don't support bitfields on uint8_t - work around this 2016-06-07 14:47:54 +02:00
twinaphex d44062d841 Make HAVE_HID completely optional 2016-06-07 03:01:33 +02:00
twinaphex b87bbc7f98 Use retro_common_api.h 2016-06-05 05:31:55 +02:00
twinaphex 5230aeb9d0 Use retro_common_api.h 2016-06-03 06:02:49 +02:00
twinaphex 7ce2ac082a Use retro_common_api.h 2016-06-03 05:54:21 +02:00
twinaphex d8b3597455 menu_cbs_deferred_push.c - Fix 'array compared against 0' 2016-06-02 20:51:27 +02:00
twinaphex 280eb95b9a Prevent logically dead code warning 2016-06-01 05:31:05 +02:00
twinaphex a98616b45b Fix explicit NULL dereferenced/dereference before null check warnings 2016-05-26 17:47:21 +02:00
twinaphex 142dd82067 (input_overlay.c) Prevent dereference after null check 2016-05-26 17:35:46 +02:00
twinaphex 2f7684c743 (Android) Cleanups 2016-05-25 16:03:32 +02:00
radius b6b2fdfaa6 comment out xbox 360 & dualshock hacks that are not needed anymore, friendly labels can be applied on the autoconf files instead 2016-05-25 00:47:01 -05:00
twinaphex 40023833e0 (IOHIDManager) Plug another potential leak 2016-05-25 02:35:13 +02:00
twinaphex f7ff1c66c4 Don't need to include this header anymore 2016-05-25 00:58:12 +02:00
twinaphex cd176d0737 Remove input_overlay_init 2016-05-25 00:57:58 +02:00
twinaphex ae0da06d8f Make input overlay state a part of struct input_overlay 2016-05-25 00:47:24 +02:00
twinaphex 5a4ada4311 Avoid some warnings by using return value for config_get_int 2016-05-24 23:53:35 +02:00
twinaphex 25eaab0a2b Start passing input_overlay_t * state around to other functions 2016-05-24 23:15:19 +02:00
twinaphex bfa6f49ae6 Fix logically dead code warnings 2016-05-24 22:12:51 +02:00
twinaphex 5656959085 Free overlay_ptr 2016-05-24 15:30:18 +02:00
twinaphex 160ac49089 (input_overlay.c) Cleanup 2016-05-24 15:29:12 +02:00
twinaphex fd7e2cd394 input_overlay_new - Call input_overlay_free from outside 2016-05-24 15:25:46 +02:00
Twinaphex c1e82d3f1a (IOHidManager) Fix adapter leak 2016-05-24 14:01:46 +02:00
twinaphex 4e74a990d4 (IOHIDManager) Free some resource leaks 2016-05-24 13:48:02 +02:00
twinaphex d5d2f7f8ee Fix resource leaks 2016-05-23 22:17:28 +02:00
twinaphex 974d3245d2 Fix logically dead code warnings 2016-05-23 22:04:00 +02:00
twinaphex 69759f5fd7 Remove logically dead code 2016-05-23 21:55:30 +02:00
twinaphex faef7b498d (Coverity) Fix some resource leaks 2016-05-23 21:28:43 +02:00
twinaphex 0a3224180b (Coverity) Fix uninitialized variables; fix some resource leaks 2016-05-23 21:19:28 +02:00
twinaphex 6c840cdd59 (input_autodetect.c) Use dir_list_new_special 2016-05-21 13:31:41 +02:00
Twinaphex 1f7c51b458 (QNX) more build fixes 2016-05-19 20:14:58 +02:00
Twinaphex 85331042be (QNX) Build fixes 2016-05-19 20:02:39 +02:00
twinaphex 7e36dcb27f move video_texture_image to libretro-common and rename it to image_texture.c 2016-05-18 12:58:00 +02:00
twinaphex 5845a9944d Add more HAVE_THREADS ifdefs 2016-05-11 19:02:43 +02:00
twinaphex 4a7ab8366b Move libretro.h headers to libretro-common/include 2016-05-10 19:03:53 +02:00
twinaphex b79b2dca13 Create performance_counters 2016-05-10 08:53:14 +02:00
twinaphex 3dc55d4e72 command.c - cleanups 2016-05-09 21:36:17 +02:00
twinaphex b3422b33fd Add parameter to command_new 2016-05-09 21:25:37 +02:00
twinaphex f15f28ce02 Refactor some command code 2016-05-09 21:23:53 +02:00
twinaphex 2691ab0c7d Rename command_event enums 2016-05-09 20:51:53 +02:00
twinaphex 523ebed112 Combine command_event.c and command.c 2016-05-09 20:30:47 +02:00
twinaphex a98ef36d36 Rename event_cmd_ctl to command_event 2016-05-09 20:20:50 +02:00
twinaphex 3c74031c2f Rename rarch_cmd to command 2016-05-09 20:10:08 +02:00
twinaphex 344d1bf949 move remote.c to input/ 2016-05-09 17:37:29 +02:00
twinaphex 685b234350 (remote.c) Rename functions 2016-05-09 07:19:18 +02:00
twinaphex f8a7154557 Rename rarch_ functions 2016-05-09 07:09:26 +02:00
twinaphex e07bba66f3 Buildfix 2016-05-08 23:52:05 +02:00
twinaphex 725c202498 Remove input_driver_ctl 2016-05-08 23:12:04 +02:00
Hans-Kristian Arntzen 8870e85395 More fixes for menu_display_ctl.
Grep shows nothing now.
2016-05-08 14:18:12 +02:00
Hans-Kristian Arntzen 66c4f608e6 Clear out rest of video_driver_ctl use. 2016-05-08 14:10:28 +02:00
Hans-Kristian Arntzen d723411436 De ioctl video_driver. 2016-05-08 14:00:51 +02:00
twinaphex 80a453bad1 De-ioctlify command.c 2016-05-08 00:25:04 +02:00
twinaphex 4ec6cb47ec Use BIT32_SET 2016-05-06 05:16:15 +02:00
twinaphex cce9190cb2 More cleanups 2016-05-06 04:51:00 +02:00
twinaphex 72bc5e134a Cleanup input_config_autoconfigure_joypad 2016-05-06 04:50:02 +02:00
twinaphex f1098d8f6a Style nit 2016-05-01 20:50:26 +02:00
Diablodiab 58c5cc6f46 Change ALooper_pollAll in android_input_poll from a non blocking call into a 1 ms
blocking call. For some reason this allows more input events to queue up in the
input queue for processing making it easier to press multiple gamepad buttons and
have it register within a single frame.
2016-04-29 00:42:09 +02:00
twinaphex 6db13ab51d (udev) cleanup 2016-04-28 22:50:02 +02:00
twinaphex 48eb86cb47 (Win32) Buildfix 2016-04-28 20:52:30 +02:00
twinaphex 895783d854 Move some variables 2016-04-28 20:49:13 +02:00
twinaphex 7dffc6286b Internally change directory settings 2016-04-28 19:26:02 +02:00
twinaphex 4f2d1d7c93 Silence warning 'val may be unused uninitialized in this function' 2016-04-21 07:22:26 +02:00
twinaphex 0f21ab247c header cleanup 2016-04-17 07:37:00 +02:00
twinaphex 97d5a971a4 Change header includes 2016-04-17 07:34:01 +02:00
twinaphex 811a2d1419 Create input_defines.h 2016-04-17 07:32:08 +02:00
Ernesto Ramirez c4f2de321a (GX) Added PS2/PSX Controller Adapter for HID driver. 2016-04-16 19:33:17 -05:00
twinaphex 89d896339c Don't need to include system.h 2016-03-24 03:47:22 +01:00
twinaphex d04940a159 (input_keyboard.c) Refactor more functions into static functions 2016-03-24 03:45:16 +01:00
twinaphex ce9573e4c3 Create RARCH_INPUT_KEYBOARD_CTL_LINE_FREE 2016-03-24 03:36:38 +01:00
twinaphex 69bcac61dd input_hid_driver.h - cleanups 2016-03-23 06:54:37 +01:00
twinaphex 76d06c89ca Make some functions static 2016-03-23 06:53:19 +01:00
twinaphex 8f7f40b86c Move more functionality to input_keyboard_ctl 2016-03-23 06:44:00 +01:00
twinaphex 56c47bbe56 Change input_driver_ctl calls to input_keyboard_ctl 2016-03-23 06:19:33 +01:00
twinaphex 2fee5edba4 Move linefeed enable enums to input_keyboard.c 2016-03-23 06:18:09 +01:00
twinaphex 92d2765157 Create input_keyboard_ctl 2016-03-23 06:11:39 +01:00
twinaphex 61bae588fb Header include changes 2016-03-22 02:45:25 +01:00
twinaphex ac6362cae4 Combine list_special files 2016-03-20 17:28:24 +01:00
twinaphex 93b7dc1bdd (libretro-common) move 'lists' files to lists/ 2016-03-20 14:53:54 +01:00
twinaphex ef4a1a3c0f (libretro-common) Rename fifo_buffer to fifo_queue 2016-03-20 14:06:21 +01:00
twinaphex 8b4a41155d C89_BUILD buildfixes 2016-03-20 05:24:05 +01:00
twinaphex a446f9040b Push these updates 2016-03-18 00:32:57 +01:00
twinaphex 2e080967b0 Reimplement grab mouse code a bit - we really need to drastically
rewrite this
2016-03-14 14:37:18 +01:00
radius f41280e82c [remapping] fix saving for players other than 1 2016-03-06 13:15:05 -05:00
twinaphex 15c9e0ae7e Add fallback 2016-03-06 01:31:46 +01:00
twinaphex 5e99d163de Puti n call to input_keyboard_event when compiling without HAVE_XKBCOMMON 2016-03-05 22:18:22 +01:00
twinaphex 81e13aa2c1 (command.c) Cut down on some functions 2016-03-04 17:35:44 +01:00
twinaphex 6f80e09ce1 Change MIN/MAX to upper-case 2016-03-02 00:07:31 +01:00
twinaphex c14e281544 (Win32) Buildfix 2016-02-26 22:45:30 +01:00
twinaphex 0f8f980c8f Start reimplementing Zarch joypad input 2016-02-26 22:29:10 +01:00
Twinaphex 33356f2df6 (OSX) Buildfix 2016-02-26 13:40:29 +01:00
radius 66a8e08252 remove saving remapping, use the automated method instead 2016-02-21 13:55:04 -05:00
radius 8f41174fca remove btn/axis identifier when no descriptor was available 2016-02-15 22:54:28 -05:00
radius e97de06f24 add a fallback for cases when an autoconf is present but it doesn't have descriptors 2016-02-15 22:48:35 -05:00
twinaphex bdbd3098dd Style nits 2016-02-15 07:16:09 +01:00
twinaphex f1a572822b Create RARCH_DISPLAY_CTL_VIEWPORT_INFO 2016-02-14 05:42:27 +01:00
twinaphex 6d8ee1f8d4 Remove input_driver_data_ptr_is_same 2016-02-13 07:40:02 +01:00
twinaphex 016ee293cd Remove input_driver_grab_mouse 2016-02-13 07:38:09 +01:00
twinaphex 24bafd7ab9 Create RARCH_INPUT_CTL_GRAB_MOUSE 2016-02-13 07:36:45 +01:00
twinaphex ac31eeb360 Cleanups 2016-02-13 07:29:02 +01:00
twinaphex 3393a32547 Cleanup 2016-02-13 07:27:22 +01:00
twinaphex 954c5a86f6 Add rarch_cmd_ctl 2016-02-13 07:19:21 +01:00
twinaphex 3a6484d0ad Change input_driver_ctl default return values 2016-02-11 01:44:39 +01:00
Twinaphex 259ac2ddbd Merge pull request #2710 from fr500/master
save only modified values when saving remaps
2016-02-10 05:46:17 +01:00
radius 80845f1cd6 save only modified values when saving remaps 2016-02-09 23:39:16 -05:00
twinaphex ce2869b4d8 Create tasks_internal and split up RA-specific task code to outside 2016-02-09 17:12:39 +01:00
twinaphex e86bd1b021 Cleanups 2016-02-09 05:11:40 +01:00
radius 67a68c0595 save libretro device and analog dpad mode with remap files 2016-02-08 16:06:54 -05:00
Diablodiab 84b6b505ad Fix crash when defining gamepad keys 2016-02-08 01:53:33 +01:00
Diablodiab bdb9471d13 Added support for using keyboards in the Retroarch menu and for mapping to gamepad keys. 2016-02-08 01:06:15 +01:00
twinaphex 534a838472 Header cleanups 2016-02-07 13:25:55 +01:00
twinaphex d3aaa7ac88 Style nits 2016-02-05 14:42:20 +01:00
twinaphex 341e8f8f15 Cleanup 2016-02-05 14:35:16 +01:00
twinaphex 8e2818bbeb Cleanups 2016-02-05 14:11:38 +01:00
twinaphex 36c36aa558 Cleanups 2016-02-05 14:09:46 +01:00
twinaphex 8fc2a05a70 Cleanups 2016-02-05 14:06:43 +01:00
twinaphex ab64daf5aa Cleanups 2016-02-05 13:51:30 +01:00
twinaphex ca3f352ed1 Remove unused udev_common 2016-02-05 13:30:19 +01:00
twinaphex 32ee695f9d Create udev_ctl 2016-02-05 01:49:31 +01:00
twinaphex 24f5275001 Use wiiugca for non-Wii too 2016-02-04 23:49:04 +01:00
twinaphex 407d85f604 Use nesusb/snesusb for non-Wii too 2016-02-04 23:43:33 +01:00
netux79 bca4ccb155 (GX) Refactor of the Wii USB HID support. Now it's working!
In order to have a controller working you need:
1) Have a matching HID autoconfig file in autoconfig/hid for your controller.
2) Create a "connect" driver for the pad in "input/connect" folder (source code of RA).
3) Once you are in RA, change the joystick driver to HID and restart.
4) You may be now able to use you USB HID compatible pad in RA.

I included some "connect" drivers as an example. It also need to include them for compilation.
2016-02-04 17:01:03 -05:00
twinaphex 2e8f015de3 Cleanups 2016-02-04 21:07:02 +01:00
twinaphex 3d56dd1ef8 Cleanup 2016-02-04 21:03:28 +01:00
Twinaphex 9c9fdcfa58 (iOS 9) Fix iOS 9 build 2016-02-04 20:17:26 +01:00
twinaphex 12e453c29a Set these static variables initially to NULL 2016-02-04 20:02:50 +01:00
twinaphex 2cbb18b4e4 Create RARCH_DRIVER_CTL_FIND_INDEX 2016-02-01 13:15:53 +01:00
twinaphex b0ec812de6 Create two new BSV_MOVIE_CTL_* actions 2016-01-30 03:25:47 +01:00
twinaphex a267bdfbe3 MOve gfx/image/image.c to gfx/video_texture_image.c 2016-01-30 02:39:08 +01:00
twinaphex 372d673a26 Rename event_command to event_cmd_ctl - add second parameter 2016-01-22 15:34:43 +01:00
twinaphex fbd2e9aa84 Use string_is_equal more 2016-01-21 02:48:00 +01:00
twinaphex 63e2d13b8f Create string_is_equal_noncase - try not to use strcasecmp so much 2016-01-20 17:34:19 +01:00
Twinaphex de513211dc Update input_autodetect.c 2016-01-20 13:28:13 +01:00
twinaphex 454abdee48 stdstring - create string_is_equal 2016-01-20 04:07:24 +01:00
Twinaphex 794bcc53c3 (iOS) Buildfix 2016-01-15 23:15:49 +01:00
twinaphex e4533fb7ec (OSX/iOS) Cleanup 2016-01-15 22:33:25 +01:00
Twinaphex 8c8a3085a5 (OSX) Buildfix 2016-01-15 22:22:37 +01:00
twinaphex 8323d06d3d (Cocoa) No more dependencies on get_chosen_screen or
get_backing_scale_factor
2016-01-15 22:20:46 +01:00
Diablodiab e738b57cf8 Add handling of Nvidia Shield Virtual Controller
The NVIDIA Button on the Nvidia Shield Controller and inputs received from CEC remotes
are detected as a "Virtual" controller on the Shield TV.

If a virtual controller is detected on the Shield TV before an actual game controller
then it will be configured as "Shield Virtual Device". This allows the use of the
buttons on a CEC remote to control the Retroarch menu and games.

When an actual controller is connected the Virtual Device will be overwritten and
the NVIDIA button of the Virtual device will be mapped to the controller as the
menu button.

This also fixes the situation where you press the NVIDIA Button before any other
button on the game controller and it does nothing. Now it will go into the
Retroarch menu even if it is the first button pressed.

A matching profile for "Nvidia Shield Virtual Controller" has been sent as a pull request to
the "retroarch-joypad-autoconfig" repository.
2016-01-15 18:41:17 +01:00
Diablodiab 9245113738 Fix if clause that could result in a keyboard key being handled as gamepad input 2016-01-14 21:16:54 +01:00
Diablodiab 2c08dc0f4f Extends Android keyboard functionality to allow for up to three keyboards.
This solves the problem with volume buttons on phones being detected as
keyboards and blocking a real keyboard from being mapped afterwards.

Renamed id_1 and id_2 to pad_id1 and pad_id2
Renamed id_3 to kbd_id and change it to an array

Implement function is_keyboard_id(int id) which checks if an id is mapped as
a keyboard
2016-01-14 20:59:25 +01:00
twinaphex 2caa529347 Change VID/PID again 2016-01-14 09:56:07 +01:00
twinaphex 5dd10f1d45 pad_connection_pad_init - cleanup 2016-01-14 09:53:00 +01:00
twinaphex 144b6aed9e Cleanup 2016-01-14 09:52:20 +01:00
twinaphex 974e8d6ce2 (joypad_connection.c) Cleanups 2016-01-14 09:51:17 +01:00
twinaphex ec6f70603b Add PID/VID for PS3 pad knockoff 2016-01-14 09:03:04 +01:00
Twinaphex 0fbb6f9bf0 Merge pull request #2642 from diablodiab/android-keyboard
Android keyboard keyboard functionality
2016-01-13 11:21:25 +01:00
twinaphex 8caee50fcd (GX) Add way to handle power callback 2016-01-13 08:27:58 +01:00
Diablodiab 88277b3918 Fixed a typo in Android version comment 2016-01-12 21:52:54 +01:00
Diablodiab afe8d2d617 Fixed two bugs in Android keyboard functionality and changed the way the keyboard
is registered (introduced an id_3 value)
2016-01-12 21:48:09 +01:00
twinaphex f374af9dbc Revert "Add keyboard input functionality to Android version"
This reverts commit 17bdb549d4.
2016-01-12 15:52:42 +01:00
Twinaphex db51b5a2c0 Merge pull request #2636 from diablodiab/android-keyboard-support
Add keyboard input functionality to Android version
2016-01-11 22:26:51 +01:00
Diablodiab 17bdb549d4 Add keyboard input functionality to Android version 2016-01-11 21:06:46 +01:00
twinaphex 347a18cb30 Update input headers 2016-01-10 04:33:01 +01:00
Twinaphex cecfdeb0cf Buildfix 2016-01-08 07:16:25 +01:00
twinaphex c779a1cf8f Move libretro_input_binds updating to input_poll 2016-01-08 06:39:23 +01:00
Ernesto Ramirez e53840f6c1 (GX) Fix input issue causing controllers to do not work at all. 2016-01-02 18:37:15 -06:00
twinaphex ef7a786527 Attempt to prevent segfault when pressing Enter in DRM/KMS mode 2016-01-02 22:28:21 +01:00
twinaphex 08e73ea144 Non_HAVE_MEN codepath fixes - courtesy of Karlton
t # Please enter the commit message for your changes. Lines starting
2016-01-02 02:54:20 +01:00
twinaphex 33028b7603 remove these files 2016-01-02 01:36:11 +01:00
twinaphex e67491d6a9 remove HAVE_LIBSICKSAXIS 2016-01-02 01:35:34 +01:00
Yoshi Sugawara 890eaafcd7 Fixed reading keyboard input for iOS 9 (use [UIApplication handleKeyUIEvent]). Fixed 8bitdo SNES30/SFC30 button mappings (fixed key mapping for X button) 2015-12-26 19:38:02 -05:00
twinaphex 697351ee67 (input) Use string_is_empty 2015-12-26 07:54:17 +01:00
aliaspider 40ac911a05 build fix. 2015-12-24 21:17:44 +01:00
twinaphex acb4682781 get rid of unused variable 2015-12-23 04:22:25 +01:00
twinaphex b8bbdc6f4c Revert udev drivers 2015-12-17 03:02:48 +01:00
twinaphex e7749c5d42 Create RUNLOOP_CTL_KEY_EVENT_GET 2015-12-13 14:31:17 +01:00
twinaphex 53804e5c24 Fix crash when system info is not yet available 2015-12-13 13:58:19 +01:00
Twinaphex 519275e629 Merge pull request #2558 from fr500/master
fix input labels empty on android
2015-12-13 03:28:41 +01:00
radius 4b082daa7e fix input labels empty on android 2015-12-12 20:56:42 -05:00
Higor Eurípedes 5219116751 (input_overlay) Fix unneeded load and memory leak 2015-12-12 22:23:55 -03:00
twinaphex d76d857166 Turn into C89-compatible comment 2015-12-13 00:01:44 +01:00
dibas f66729c012 Calibrate Wii U Pro Controller analogue sticks. 2015-12-12 21:47:45 +01:00
twinaphex 5f296ea402 Fix hatvalues 2015-12-12 20:55:09 +01:00
dibas 0c749a6181 Implemented additional checks for Nintendo controllers. 2015-12-12 20:41:52 +01:00
twinaphex 88d54336c7 (wiiupro) Add stub axis implementation 2015-12-12 20:38:23 +01:00
Twinaphex d85595ca67 Put Wii-U Pro pad on top of Wii Classic pad in list 2015-12-12 20:06:10 +01:00
twinaphex 8516e3350f Change send_control 2015-12-12 19:33:04 +01:00
twinaphex e529d76aec Turn buttons into booleans 2015-12-12 19:10:50 +01:00
twinaphex 9394294956 (joypad_connection) Stub Wii U Pro implementation - untested 2015-12-12 18:30:17 +01:00
twinaphex d70d09ad8d (connect_ps4.c) Cleanup 2015-12-12 17:58:40 +01:00
radius 48fbc5eda4 Improve the shield portable workaround and reimplement the workaround for the shield atv,
This workaround could be used as a foundation for other console like devices.
2015-12-11 17:25:03 -05:00
twinaphex fc6505e408 Get rid of rarch_system_info_get_ptr 2015-12-10 22:30:25 +01:00
twinaphex 41fc41e170 (input_driver.c) Cleanups 2015-12-10 12:54:56 +01:00
twinaphex 4727ddb52d Create RARCH_INPUT_CTL_KEY_PRESSED 2015-12-10 12:47:36 +01:00
twinaphex 7a791fa6e8 Turn primary_id/secondary_id into static variables 2015-12-09 22:17:55 +01:00
Twinaphex 2bb440bc08 Merge pull request #2535 from fr500/master
new workaround for pads implemented as two independents hid devices
2015-12-09 22:16:43 +01:00
twinaphex 23c13c0043 Delay reinit, gets rid of the remaining concurrency errors 2015-12-09 20:30:55 +01:00
twinaphex decbffd25b Refine RARCH_INPUT_CTL_DEINIT 2015-12-09 19:43:04 +01:00
radius 08f42beefb add ARCHOS gamepad 2015-12-09 10:00:32 -05:00
twinaphex 959b781c06 (Android) Implement input_alive 2015-12-08 13:47:46 +01:00
twinaphex 629a660af4 Check if android_app or android variables are NULL in android_input_poll_memcpy 2015-12-08 08:53:26 +01:00
twinaphex c1312d3b41 Buildfix 2015-12-07 21:21:13 +01:00
twinaphex 84bcf896b6 Set SET/UNSET_FRAME for Android 2015-12-07 21:17:55 +01:00
twinaphex 1e522f4035 (Android) Start calling SET_STUB_FRAME for LOST_FOCUS/GAINED_FOCUS 2015-12-07 21:07:04 +01:00
twinaphex 2d55dc3bda Complete namespace changes 2015-12-07 15:32:14 +01:00
radius e28450368f reset the ids when the driver is reinitialized 2015-12-06 23:39:42 -05:00
radius 17aa00db1a change variables 2015-12-06 23:20:47 -05:00
radius cbd8819fb3 new workaround for pads implemented as two independents hid devices 2015-12-06 22:58:54 -05:00
Higor Eurípedes b64ecfae92 (android_input) Fix negative port issue 2015-12-06 21:08:27 -03:00
twinaphex 4ef98894a2 Header include cleanups 2015-12-06 21:40:55 +01:00
twinaphex c6359d6dbc Divorce g_system_menu from global state 2015-12-06 19:31:47 +01:00
Higor Eurípedes ee06d36735 (input_driver) Get rid of dangling pointer 2015-12-06 13:56:20 -03:00
twinaphex 015986fea4 RARCH_INPUT_CTL - Make sure all static local variables are set
back to default state
2015-12-06 17:19:12 +01:00
twinaphex bfef1c816f Cleanup 2015-12-06 16:32:08 +01:00
twinaphex 39e9d5c5ba Start cutting down on the size of some char local variables - we
don't need PATH_MAX_LENGTH for everything
2015-12-06 13:28:20 +01:00
Higor Eurípedes 1cd0a0ff0a (android_input.c) Fix usage of signed/unsigned
This caused a segmentation failure in android_keyboard_state_get()
2015-12-05 19:23:02 -03:00
twinaphex 3517fdc02a (Android) Buildfix 2015-12-05 21:18:06 +01:00
twinaphex 5ba14b45ce Change some header includes 2015-12-05 20:05:32 +01:00
twinaphex d61b491d47 Don't include retro_miscellaneous.h as part of driver.h 2015-12-05 18:47:05 +01:00
twinaphex 736f343d9f Create RARCH_MENU_CTL_IS_ALIVE 2015-12-05 13:49:34 +01:00
twinaphex cbb3535854 joypad_connection.c - include stdlib.h for calloc 2015-12-05 13:24:15 +01:00
twinaphex 2f29d9f18c Take out menu/menu_driver.h include from driver.h 2015-12-05 13:22:50 +01:00
twinaphex fd07b5c689 (input_driver.c) Don't destroy input driver data during
RARCH_INPUT_CTL_DESTROY
2015-12-04 15:15:57 +01:00
twinaphex 351077dc78 Start reimplementing audio/video/input driver deiniting 2015-12-04 14:30:59 +01:00
twinaphex c0a1a6a3fe Move system->shutdown to runloop_ctl, turn it into a local
static variable
2015-12-04 12:44:12 +01:00
twinaphex 35da6073df (gx_joypad.c) Declare variables at top 2015-12-04 12:00:00 +01:00
twinaphex 0b9df5a069 (GX) Buildfix 2015-12-04 11:56:10 +01:00
twinaphex f21a9f2fd2 dinput.c - buildfix 2015-12-04 11:28:13 +01:00
twinaphex 50f3999e9b Backport/rewrites wmarquesr pt. 8 2015-12-04 11:11:05 +01:00
twinaphex a53334fba6 Backport/rewrites wmarquesr - pt. 4 2015-12-04 10:41:05 +01:00
twinaphex 67518b3c6c Move input_driver_block_hotkey to input_driver_ctl as static
local variable
2015-12-04 08:24:43 +01:00
twinaphex 24285d1167 Move input_driver_block_libretro_input to input_driver_ctl
as static local variable
2015-12-04 08:15:39 +01:00
twinaphex 957d53499b (input_autodetect.c) Turn static variable into local static variable - remote_bound 2015-12-04 02:57:47 +01:00
twinaphex 2582898a28 (input_driver.c) Nit 2015-12-04 02:50:29 +01:00
twinaphex 4eeada75b1 (input_driver.c) Turn some static variables into local static variables 2015-12-04 02:50:05 +01:00
twinaphex 071912871b (android_input.c) Attempt to only grab dlopen handle once 2015-12-03 21:19:16 +01:00
twinaphex 8ae39377e7 (Android) Cleanups 2015-12-03 01:59:43 +01:00
twinaphex 694e64831b Create thread duplicate variant of android_input_data_t variable 2015-12-02 23:23:21 +01:00
twinaphex 923433ead7 Move engine_handle_dpad code to android_input.c - copy
hat and analog state to intermediary on android_app during
poll time
2015-12-02 22:33:27 +01:00
twinaphex 69ee18cea6 Create android_input_data_t 2015-12-02 22:12:43 +01:00
twinaphex e859fae4ee (Android) Move sensorManager and sensorEventQueue to android_app 2015-12-02 21:38:21 +01:00
twinaphex b7d7dcef1c Expand android_app 2015-12-02 19:28:15 +01:00
twinaphex cfe5491b05 (Android) Reimplement how shutdown gets signalled 2015-12-02 17:55:31 +01:00
twinaphex d6b5dd6ac4 Flesh out android_native_app_glue.c implementation some more 2015-12-02 17:46:20 +01:00
twinaphex 986e4bf40d (Android) Native activity updates 2015-12-02 08:54:24 +01:00
Twinaphex 2c12ea6dd9 Merge pull request #2502 from heuripedes/master
Fixes
2015-12-01 01:48:10 +01:00
twinaphex f1a0068dc7 Move bsv global state to movie.c 2015-12-01 01:47:26 +01:00
Higor Eurípedes 6ab4f8128f (overlay) Fix huge leak when overlays are not supported 2015-11-30 21:32:32 -03:00
twinaphex d05ed635c6 Start rewriting bsv movie code so that global->bsv.movie is
only accessed inside movie.c
2015-12-01 01:20:22 +01:00
twinaphex a6d8d28895 Create more BSV_MOVIE_CTL_* enums 2015-12-01 00:16:48 +01:00
twinaphex 5d9e6bca60 Move bsv movie code to movie.c 2015-12-01 00:04:04 +01:00
twinaphex 22d64ae3dc move driver->remote and driver->command to input_driver.c 2015-11-30 23:06:47 +01:00
twinaphex 0b24618cd5 Move driver->command to input_driver.c 2015-11-30 22:56:41 +01:00
twinaphex 0db7cda264 Start moving rewind code to rewind.c 2015-11-30 22:25:13 +01:00
twinaphex 9824eb7ea9 Rename rarch_main_ctl to runloop_ctl 2015-11-30 21:42:59 +01:00
twinaphex 4e333302ae Rename RARCH_MAIN_CTL* to RUNLOOP_CTL* 2015-11-30 21:35:50 +01:00
twinaphex c3b2f84f39 Typo fix 2015-11-30 18:24:35 +01:00
twinaphex c03e1547b1 (linuxraw_joypad) Cleanups 2015-11-30 18:20:50 +01:00
twinaphex 7cb78cca58 Make g_epoll static 2015-11-30 18:14:07 +01:00
twinaphex 54655c37cd Create epoll_waiting 2015-11-30 18:08:00 +01:00
twinaphex ecbfc72e9b Create epoll_common 2015-11-30 18:05:10 +01:00
twinaphex 6d90c42bb5 We need to check for the instance where udev is only initialized
for the joypad part and not the general input driver
2015-11-30 16:56:32 +01:00
twinaphex 62260cf892 Turn g_udev static 2015-11-30 16:52:29 +01:00
twinaphex 28602d84af Make g_udev_mon static 2015-11-30 16:47:43 +01:00
twinaphex b76481b21e Create udev_mon_hotplug_available 2015-11-30 16:42:52 +01:00
twinaphex 2db1197942 Expand udev_common.c 2015-11-30 16:39:22 +01:00
twinaphex fd91cf130e Create udev_common.c/udev_common.h 2015-11-30 16:31:05 +01:00
twinaphex 41916b123f Optimize check_input_driver_block_hotkey 2015-11-30 08:32:30 +01:00
twinaphex 88d0b94ab2 input_poll - do direct poll call 2015-11-30 08:15:54 +01:00
twinaphex 63bce5fd5a (input_driver.c) Uniquely namespace static variables 2015-11-30 07:36:27 +01:00
twinaphex 21a9bd13a6 (input_overlay.c) Cleanups 2015-11-30 04:47:41 +01:00
twinaphex fc85cc46d1 Fix CXX_BUILD 2015-11-30 03:32:34 +01:00
twinaphex 871713dd9d Move driver->keyboard_linefeed_enable to input_driver.c 2015-11-30 03:23:35 +01:00
twinaphex d4e88324ac Move driver->osk_enable to input_driver.c 2015-11-30 03:14:26 +01:00
twinaphex 5b6641b077 (linuxraw_input.c) Remove unused driver reference 2015-11-30 02:50:10 +01:00
twinaphex 805735c958 (input_driver.c) Cleanups 2015-11-29 22:43:12 +01:00
twinaphex d15ad86705 Create hid_driver_get_data 2015-11-29 21:11:57 +01:00
twinaphex df9f0fc6d1 Move input_data_own to input_driver.c 2015-11-29 20:34:35 +01:00
twinaphex d181870caa No more dependency on driver_t for driver->input 2015-11-29 19:18:59 +01:00
twinaphex 7a6f444823 No more references to driver->input from outside 2015-11-29 19:07:02 +01:00
twinaphex c96312ad04 input_keys_pressed - cleanup 2015-11-29 19:01:10 +01:00
twinaphex 83ba8f0545 (input_driver.c) Cleanups 2015-11-29 18:59:49 +01:00
twinaphex 5e1b2b3bfa Move driver->input_data to input_driver.c 2015-11-29 18:18:25 +01:00
twinaphex 1c867cedf0 Move nonblock_state to input_driver.c (NOTE: we probably need
to relocate this later on)
2015-11-29 17:53:11 +01:00
twinaphex e8d6e48a74 Remove unused variables 2015-11-29 17:34:31 +01:00
twinaphex 6fd6288337 Move block_libretro_input to input_driver.c 2015-11-29 17:33:29 +01:00
twinaphex 253649b0cf Move flushing_input to input_driver.c 2015-11-29 17:23:30 +01:00
twinaphex 23d63d0b5a Move block_hotkey to input_driver.c 2015-11-29 17:12:38 +01:00
twinaphex 178e52bca5 Move turbo_btns to input_driver.c 2015-11-29 17:10:03 +01:00
twinaphex 9a743ec357 Create input_driver_key_pressed 2015-11-29 16:45:38 +01:00
twinaphex dc7e8bc52b Cleanup android_joypad_query_pad 2015-11-29 16:35:51 +01:00
twinaphex 53277e3b1c Remove more HAVE_COCOA ifdefs 2015-11-29 16:28:55 +01:00
twinaphex eaa98dafc0 Fix header 2015-11-29 16:27:11 +01:00
twinaphex abae213b6b (keyboard_event_apple.c) Remove drivers/cocoa_input.h header include 2015-11-29 16:26:40 +01:00
twinaphex d018f65e95 Rename cocoa_input_keyboard_event 2015-11-29 16:26:13 +01:00
twinaphex 025d2c6328 (Android) Cleanups 2015-11-29 16:20:04 +01:00
twinaphex 2d455d78b3 Move inptu state to android_joypad.c 2015-11-29 16:18:29 +01:00
twinaphex f1fe78eb1a (cocoa_input.c) Include header 2015-11-29 15:52:37 +01:00
twinaphex 2deeb36a81 Rename apple_keycode.h 2015-11-29 15:50:27 +01:00
twinaphex 9d3a8c3815 (Apple) Buildfix #2 2015-11-29 15:47:05 +01:00
twinaphex 99cc4c59c3 (Apple) Buildfix 2015-11-29 15:46:01 +01:00
twinaphex bc748951c6 Start no longer having dependencies on apple input data for
keyboard_event_apple.c
2015-11-29 15:44:21 +01:00
twinaphex dff44d8d49 (udev) split up keyboard code to separate files 2015-11-29 15:35:34 +01:00
twinaphex 6c7da0e503 (udev) Change function signature of callback 2015-11-29 06:34:35 +01:00
twinaphex 9fd9fd10e8 Create input_x11_common 2015-11-29 03:34:09 +01:00
twinaphex 127448f848 Use video_driver_window_get 2015-11-29 01:39:28 +01:00
twinaphex 0044d853f8 Move display_type / display_window etc all to gfx/video_driver.c -
no more dependencies on driver_t
2015-11-29 01:12:49 +01:00
Twinaphex 3001729545 Revert "Go through input_driver_get_data_ptr whenever we need input data"
This reverts commit 52c9a2ec43.
2015-11-28 18:58:33 +01:00
twinaphex 52c9a2ec43 Go through input_driver_get_data_ptr whenever we need input data
state
2015-11-28 18:51:12 +01:00
twinaphex 7856c4e940 (Android) Cleanups 2015-11-28 18:39:43 +01:00
twinaphex b06d08a32e Remove some references to driver->input_data 2015-11-28 18:33:59 +01:00
twinaphex 3b903adea1 Don't try to access driver->input_data from outside 2015-11-28 18:26:05 +01:00
twinaphex be71e654f3 Create input_driver_get_data_ptr 2015-11-28 18:22:05 +01:00
twinaphex ed71129ee6 Create RARCH_INPUT_CTL_HAS_CAPABILITIES 2015-11-28 17:54:50 +01:00
twinaphex c23846c5dc Merged input_joypad.c and input_joypad_driver.c 2015-11-28 16:22:49 +01:00
twinaphex 1df5d44bdb Rename input/keyboard_line 2015-11-28 16:13:16 +01:00
twinaphex 68169f9ac3 Rename input_get_bind_string_* functions 2015-11-28 16:06:14 +01:00
twinaphex a3c34a7813 Cleanups 2015-11-28 02:31:19 +01:00
twinaphex 0bce3a9cec Rename some more input_config functions 2015-11-28 02:26:57 +01:00
twinaphex a6ccc188a8 Rename input_common.c to input_config.c 2015-11-28 02:22:58 +01:00
twinaphex 70d782b94a Rename functions to fit input_config_ naming convention 2015-11-28 02:13:27 +01:00
twinaphex 28e035ec6b Move functiosn around 2015-11-28 02:09:11 +01:00
twinaphex f4b61bd164 Make one static function 2015-11-28 02:05:15 +01:00
twinaphex 7ca0d74005 Don't expose struct in header anymore 2015-11-28 00:59:47 +01:00
twinaphex 0b0b3431b0 Go through input bind map wrapper functions 2015-11-28 00:57:57 +01:00
twinaphex 0ca0bd182b Don't expose input_bind_map outside anymore 2015-11-28 00:51:33 +01:00
twinaphex 1f5b121505 Create input_get_bind_map_base 2015-11-28 00:44:34 +01:00
twinaphex 222b9a2113 Fix CXX_BUILD 2015-11-28 00:40:11 +01:00
radius 9312b1fe33 merge with upstream 2015-11-27 18:20:35 -05:00
radius d8badc2ad8 enable polling the remote gamepads 2015-11-27 18:15:41 -05:00
radius fe9700ebda add input polling code 2015-11-27 18:08:56 -05:00
radius ac1695e7fd open different sockets per-user 2015-11-27 18:08:52 -05:00
twinaphex a8d868f187 (Android) Implement 'focused' callback for androidegl_ctx 2015-11-27 20:38:29 +01:00
twinaphex a1ecc5eee3 (Android) Some cleanups in engine_handle_cmd 2015-11-27 18:27:30 +01:00
twinaphex daeb8cacaf Set idle when APP_CMD_LOST_FOCUS 2015-11-27 00:23:47 +01:00
twinaphex cb98cbc1bf Create RARCH_INPUT_CTL_POLL 2015-11-25 20:39:46 +01:00
twinaphex df948215af Some C89_BUILD fixes 2015-11-25 19:27:33 +01:00
Twinaphex 5b8661b6b5 Merge pull request #2468 from fr500/master
add a hint so the user can tell between devices with the same name
2015-11-25 19:25:56 +01:00
twinaphex 77e4faf5ea Move code around 2015-11-25 18:53:54 +01:00
twinaphex 9643edfac7 Create RARCH_INPUT_CTL_DESTROY 2015-11-25 18:49:37 +01:00
twinaphex 73ce9c0d23 Add another RARCH_INPUT_CTL_* command 2015-11-25 18:33:18 +01:00
twinaphex 92c0907e80 Create more RARCH_INPUT_CTL_* commands 2015-11-25 18:29:28 +01:00
twinaphex 14b2b8ada7 Start creating input_driver_ctl 2015-11-25 18:21:21 +01:00
radius 3ac80f6864 add a hint so the user can tell between devices with the same name 2015-11-24 22:30:51 -05:00
twinaphex 08ae9df639 Merge input_sensor.c with input_driver.c 2015-11-25 03:29:18 +01:00
twinaphex c9db73e944 Contain driver->input_data usage pt. 2 2015-11-25 03:25:31 +01:00
twinaphex d2f771440b Contain driver->input_data usage 2015-11-25 03:15:22 +01:00
Higor Eurípedes 29e9b87319 (tasks) Make task handles honor task->cancelled 2015-11-24 22:18:09 -03:00
Twinaphex 8a5ba85c9a Cleanups 2015-11-24 20:25:31 +01:00
twinaphex f04f4c89c8 Turn another function static 2015-11-24 02:18:41 +01:00
twinaphex 1639f27f8c Turn check_block_hotkey into static function 2015-11-24 01:54:21 +01:00
twinaphex 909ee01012 Move input_state code to input_common.c 2015-11-24 01:19:48 +01:00
twinaphex 075a4891dc Buildfix/move input code around 2015-11-24 01:18:00 +01:00
twinaphex 60dd3fe8b3 Move input_data related code to input/input_common.c 2015-11-24 00:53:47 +01:00
twinaphex a3e52a9369 Put M_PI inside retro_miscellaneous.h 2015-11-24 00:05:37 +01:00
Higor Eurípedes 46ec7562c1 (overlay) Fix behavior when overlay_hide_in_menu=true 2015-11-23 17:43:37 -03:00
Higor Eurípedes 6f88ece9ab (overlay) Fix memory leak 2015-11-23 17:43:33 -03:00
Higor Eurípedes 9654fabe77 (overlay) Fix on screen keyboard 2015-11-23 17:42:01 -03:00
Higor Eurípedes 52e3b03546 Remove some uneeded prototypes 2015-11-23 17:42:01 -03:00
Higor Eurípedes a0d2bb4c7c Reimplement overlay loading with tasks 2015-11-23 17:42:01 -03:00
Alcaro 7b66b65823 Add some error messages if the null drivers are used. 2015-11-23 19:42:46 +01:00
twinaphex 389cf13db5 Don't reference driver->video_data outside of gx/video_driver.c anymore 2015-11-23 18:51:04 +01:00
twinaphex c7dc83533a Add param to video_driver_get_ptr for grabbing the nonthreaded
data state
2015-11-23 16:06:09 +01:00
twinaphex 60fec26bcf (sdl_input.c) Use video_driver_get_ident 2015-11-23 14:57:24 +01:00
twinaphex 9b41061143 Rename driver->video 2015-11-23 14:14:12 +01:00
twinaphex ee733fcd0f (input_overlay.c) Go through video_driver_get_ptr 2015-11-23 13:24:20 +01:00
twinaphex b434689d39 (Win32) Buildfixes 2015-11-23 12:14:53 +01:00
twinaphex 074f14b132 Add verbosity.c/verbosity.h 2015-11-23 12:03:38 +01:00
twinaphex 806c124eae Merge video_viewport.c and video_driver.c 2015-11-21 13:01:23 +01:00
twinaphex 5cea9e5400 Add RARCH_DISPLAY_CTL_IS_FOCUSED 2015-11-20 15:24:24 +01:00
Marco Bonardo 03f0c0339d Poll sliders in joypad dinput driver
Poll sliders position as additional axes in the directinput joypad driver
2015-11-19 02:39:50 +01:00
Twinaphex e27d533fcd (iOS/Cocoa) Try this - prefer MFi analog value over BTStack one 2015-11-18 05:37:41 +01:00
Twinaphex d399bc11e2 (MFi) Reimplement analog support 2015-11-18 04:54:08 +01:00
Twinaphex 352a8acdf5 Merge pull request #2424 from Yogarine/master
Fix rwebinput driver
2015-11-18 02:49:51 +01:00
Alwin Garside e5b0a5858a Fix rwebinput driver
input/drivers/rwebinput_input.c:
 -  rwebinput_key_pressed() was defined twice. Not sure why, but removed the first instance of it.
 -  in rwebinput_input_state() the device was hardcoded to INPUT_DEVICE_TYPE_NONE which would result in it always returning 0
2015-11-18 02:45:41 +01:00
Alwin Garside 83d63fcdd1 Merge remote-tracking branch 'libretro/master' 2015-11-18 02:12:47 +01:00
Twinaphex bcaa2f9aa7 (BTStack) Another buildfix 2015-11-18 02:12:05 +01:00
twinaphex 80d44ce333 (btstack_hid.c) Buildfixes 2015-11-18 02:11:06 +01:00
twinaphex 5edcb99b35 (btstack_hid.c) Cleanups 2015-11-18 02:06:03 +01:00
twinaphex 37d45643f9 (BTStack) Move btpad_set_inquery_state calls to btstack_hid.c 2015-11-18 01:57:45 +01:00
Alwin Garside 58748da89d Emscripten related fixes.
- audio/audio_dsp_filter.c:  append_plugs() should only be called if HAVE_DYLIB
- emscripten/library_rwebaudio.js: Performance improvements, and fallback support for browsers that don't support the Performance API. (e.g. mobile Safari)
- emscripten/library_rwebinput.js: Improve mouse handling. Still not optimal, but works with browsers that don't support mouse capturing.
- frontend/drivers/platform_emscripten.c: Added global function for easy access to certain RetroArch features from JavaScript.
- gfx/video_driver.h: Disabling HAVE_MENU incorrectly disabled set_texture_enable()
- input/drivers/rwebinput_input.c: Missing header file: "../input_joypad.h".
- Makefile.emscripten: Cleanup and make sure the appropriate functions are exported.
2015-07-17 12:46:08 +02:00
twinaphex 450c665619 Create meta_key_pressed 2015-07-17 03:31:51 +02:00
twinaphex 8162b77bae Whitelist menu_toggle key 2015-07-17 03:12:52 +02:00
twinaphex a2af5252c1 Get rid of input_driver_key_pressed 2015-07-17 03:09:12 +02:00
twinaphex f1d8f98c90 Refinement on earlier revert 2015-07-17 02:59:03 +02:00
twinaphex 63582f83b1 Revert "Optimize input_driver_keys_pressed and make it possible to"
This reverts commit 5d87c697bb.
2015-07-17 02:58:26 +02:00
twinaphex f5566cbe3b Cleanup warnings 2015-07-16 10:11:28 +02:00
fr500 ca682d38eb better shield portable hack 2015-07-16 03:22:28 -04:00
twinaphex 56f273b0b5 Put in the Nvidia Shield hack back in for Shield Portable
explicitly
2015-07-15 06:26:32 +02:00
twinaphex a6bbc31f95 (GX) Header buildfix 2015-07-14 06:14:13 +02:00
Twinaphex f2ee781e92 Merge pull request #1959 from netux79/master
Fixed nunchuk controller support, it was not correctly detected.
2015-07-14 06:03:34 +02:00
Jose Ernesto Ramirez Ramirez 09f3c3ca77 Fixed nunchuk controller support, it was not correctly detected.
Fixed classic controller's analogs, were not working at all.
Restored sixaxis controller support, now with completely rewroten library.
Changed detection order (GC, Sixaxis, Wiimote/Nunchuck/Classic, left wiimote at the end, otherwise we needed to disconnect it to be able to use GC controller or sixaxis controller.
2015-07-13 22:58:01 -05:00
radius 39e15c983b Merge branch 'master' of github.com:libretro/RetroArch 2015-07-12 15:30:09 -05:00
radius 82feadd350 fix vid/pid saving for dinput, need to add it to other drivers 2015-07-12 15:29:49 -05:00
twinaphex 5ac2ac62a3 Add dot to message end 2015-07-12 21:55:21 +02:00
radius a480ad285b simplify the OSD message a bit more 2015-07-12 14:28:39 -05:00
Twinaphex 1ff9f89e7d Merge pull request #1952 from fr500/master
Proposals
2015-07-12 21:13:01 +02:00
radius 6f9467817e Shield Fix 2015-07-12 13:56:34 -05:00
radius 26b7ccead9 add a display_name field if available so the user can know which autoconf was used 2015-07-12 13:45:17 -05:00
twinaphex 117fd48f15 Get rid of some superfluous wrapper functions 2015-07-12 11:14:41 +02:00
twinaphex 7fb1265227 (PSP/CTR) Should fix lifecycle state menu toggling 2015-07-12 10:46:20 +02:00
twinaphex 23348f41ac (GX) Menu button toggle should work again 2015-07-12 10:41:49 +02:00
twinaphex b908b1083b (input_driver.c) small micro-opts 2015-07-12 09:28:24 +02:00
twinaphex 5d87c697bb Optimize input_driver_keys_pressed and make it possible to
pass more 'keys' to the input key pressed callback than just
the standard buttons
2015-07-12 09:08:27 +02:00
twinaphex 2a881d64be Name some functions the same across drivers 2015-07-12 08:51:13 +02:00
twinaphex fbc504acfe Turn one C++ comment into C 2015-07-12 08:46:41 +02:00
twinaphex 32b3aa6b00 (Cocoa) cocoa_input.c - Simplifications 2015-07-12 08:45:12 +02:00
twinaphex c2c9ace028 Input driver's 'input_key_pressed' implementation does not
have to query for overlay state - this is done in an upper-level
function already
2015-07-12 08:39:34 +02:00
twinaphex bbc63f7e99 Fix CXX_BUILD 2015-07-12 08:08:27 +02:00
twinaphex 135ee2f503 Use UINT64_C(1) everywhere instead of 1ULL 2015-07-12 07:53:46 +02:00
twinaphex ae14d8c78a (input_overlay.c) Cleanups 2015-07-12 07:42:14 +02:00
twinaphex b3e054a946 (input_overlay.c) Turn more functions static 2015-07-12 07:32:51 +02:00
twinaphex a0b2e4881a (input_overlay.c) Some more simplifications 2015-07-12 07:28:28 +02:00
twinaphex c9814c9b12 (Overlay) Don't expose input overlay handle to outside 2015-07-12 07:22:52 +02:00
twinaphex 2dbc3c4b56 (Overlays) Cleanups 2015-07-12 07:12:33 +02:00
twinaphex 599ed62849 (Overlay) Refactor some more code 2015-07-12 07:03:39 +02:00
twinaphex 86e7f34666 Create input_overlay_key_pressed 2015-07-12 06:54:35 +02:00
twinaphex 1a4954ce55 Move more code to input_overlay.c 2015-07-12 06:47:39 +02:00
twinaphex af752ba24b (PS3) ps3_input.c - cleanup 2015-07-12 02:55:29 +02:00
twinaphex 9e61a5ebf4 (udev_input.c) Cleanup add_device 2015-07-12 02:44:53 +02:00
twinaphex 0107be2485 (GX) Refactor controls 2015-07-12 01:58:43 +02:00
twinaphex 2bdce53651 (PSP) Refactor input code 2015-07-12 01:55:51 +02:00
twinaphex 69a406809e (CTR) Refactor code 2015-07-12 01:53:32 +02:00
twinaphex 028c9b5e3c (input_overlay.c) Some more safety checks 2015-07-12 01:33:14 +02:00
twinaphex 01415528c6 (libusb) Update 2015-07-12 01:08:53 +02:00
twinaphex 2121f7a813 Create overlay->alive 2015-07-11 23:45:23 +02:00
twinaphex 5749d5e034 Rename overlay_state_ptr to overlay_st_ptr 2015-07-11 22:45:02 +02:00
twinaphex 396b08513a input_overlay_free_overlay - prevent 'free' on not malloced pointer 2015-07-11 22:07:05 +02:00
twinaphex 17024c4056 (input_overlay.c) Attemp to simplify input_overlay_load_texture_image 2015-07-11 22:03:21 +02:00
twinaphex 5fd65afae1 Have to call config_file_new at the start of every overlay function
and config_file_free at the end of every function
2015-07-11 20:49:04 +02:00
twinaphex 6e63f562ea (D3D) Buildfix 2015-07-11 19:47:20 +02:00
Twinaphex 70607acb6b Turn overlay_state_ptr into non-pointer 2015-07-11 18:22:23 +02:00
twinaphex c3f5ea0fcc Make input_overlay.h no longer depend on RPNG image 2015-07-11 08:14:39 +02:00
twinaphex 1b163e6a5a Cleanup input_overlay.c 2015-07-11 08:07:14 +02:00
twinaphex 70b423cc3e Move config_file.h dependency out of input_overlay.h 2015-07-11 07:51:34 +02:00
radius 88c4b2415d print osd messages on save 2015-07-10 23:13:37 -05:00
radius da7a75f0fb cleanup some duplicate code and make it prefer the drivername subdir if it exists 2015-07-10 22:56:44 -05:00
radius 63ce5ee4c0 make the first match work too 2015-07-10 22:36:28 -05:00
radius 0ea522585d add a function to save controller profiles 2015-07-10 20:15:14 -05:00
twinaphex 6f99b4d381 (Android) Implement 'Back As Menu Toggle Enable' setting 2015-07-11 03:13:38 +02:00
twinaphex 2f9e8b44e3 (input) Get rid of remaining unused global pointers 2015-07-10 19:08:58 +02:00
twinaphex f50751909c (QNX) Don't depend on global state for input driver 2015-07-10 18:52:23 +02:00
twinaphex 2eab572773 (CTR) Don't depend on global state in input driver 2015-07-10 18:51:04 +02:00
twinaphex 2698d4622a (PSP) Don't depend on global state in input driver 2015-07-10 18:47:56 +02:00
twinaphex 25ffeb1ed9 (Xenon) Don't depend on global state in input driver 2015-07-10 18:45:22 +02:00
twinaphex e2d510e4f6 (GX) No longer depend on global pointer in input driver 2015-07-10 18:44:11 +02:00
twinaphex b6609d576b Build fixes when HAVE_OVERLAY is not defined 2015-07-10 18:37:25 +02:00
twinaphex 8fc5c85589 Move keymaps to input drivers 2015-07-10 09:55:29 +02:00
twinaphex b501e19dc4 input_autodetect.c - cleanup 2015-07-10 09:15:55 +02:00
twinaphex 5e634a48ce (input_autodetect.c) Some C89/C90 build fixes 2015-07-10 09:06:00 +02:00
twinaphex a2c1a3e82b Buildfix 2015-07-10 07:16:21 +02:00
twinaphex feb661754b Make it look at the joypad driver's name for subdirectory instead of
the input driver's name
2015-07-10 07:05:36 +02:00
twinaphex 84066d569c Put #if 0 around unused function 2015-07-10 06:59:14 +02:00
radius 7b45800ff9 make it look in the top level directory first, if no profiles look in the driver name subdir 2015-07-09 23:51:39 -05:00
radius 15a3aa134a make it look under autoconf\drivername 2015-07-09 23:12:35 -05:00
radius 2f26eac396 declare variables on top 2015-07-09 22:54:49 -05:00
radius cec1f3408f declare variables on top 2015-07-09 22:52:52 -05:00
radius 9d268aba54 refactor input autoconfiguration to use a score system 2015-07-09 22:46:28 -05:00
radius c604b44672 add vid/pid to dinput 2015-07-09 20:39:43 -05:00
twinaphex e99a23a5e2 (Android) More cleanups 2015-07-10 00:36:46 +02:00
twinaphex dc96b4820f (Android) Cleanup android_input.c 2015-07-10 00:27:05 +02:00
twinaphex 34414b5919 Menu toggle should be properly saved now with custom bind - the
forced hack broke all sorts of behavior
2015-07-09 22:16:27 +02:00
twinaphex ab604524dc (Android) Get rid of some more hardcoded stuff 2015-07-09 21:39:47 +02:00
Jools Wills 9fb753410e cosmetic - fix incorrect tab indentation introduced by 141dbabe3d 2015-07-09 20:03:36 +01:00
twinaphex c82ca15c91 (input_common.c) Fix two small leaks 2015-07-09 19:54:46 +02:00
twinaphex 7867c3ee74 (dinput_joypad.c) Cleanup 2015-07-09 18:45:48 +02:00
Twinaphex b91f310b60 Merge pull request #1934 from fr500/master
Add VID/PID to the joypad struct
2015-07-09 18:44:46 +02:00
radius af978297e2 fix nits 2015-07-09 11:31:05 -05:00
radius 141dbabe3d add VID/PID to the dinput_joypad struct 2015-07-09 11:29:04 -05:00
twinaphex 8c1a918899 (Android) Cleanup 2015-07-09 18:11:53 +02:00
twinaphex 63c7104ab1 (Android) android_input.c - cleanups 2015-07-09 18:09:45 +02:00
twinaphex d104a878f1 (Android) Code cleanups 2015-07-09 17:55:52 +02:00
twinaphex 425948c706 (udev_joypad.c) Alcaro might have inadvertently broken compute_axis
here - see https://github.com/libretro/RetroArch/issues/1900
2015-07-09 07:59:16 +02:00
twinaphex abf7a80f27 (Android) Buildfixes and remove unused variable warnings 2015-07-09 07:48:56 +02:00
twinaphex 954121b99c Kill off some console-only hacks to do with lifecycle state 2015-07-09 06:35:18 +02:00
twinaphex 1c406bc098 Add rarch_main_data_pending_scan_finished and other mechanisms
so that the call to menu_environment_cb gets made on main thread
2015-07-09 02:31:46 +02:00
twinaphex 12ca517cf7 (libusb) Cleanups 2015-07-09 01:51:44 +02:00
twinaphex cdf3ce309e Decouple 'overlay' state from driver_t 2015-07-09 01:10:30 +02:00
Toad King 55553623f9 [GX] minor fix on gamepad state 2015-07-04 15:37:29 -05:00
Toad King 26b4dc79d0 [Android] clear bindings on context reset, they end up getting rebound anyway
bump version
2015-07-02 23:06:53 -05:00
Toad King d0866995bd set back button to menu toggle if not set through autoconf 2015-07-02 21:48:06 -05:00
David Shah c2d26cfb23 Fix input on KitKat for S7800B and other devices with a VID or PID of 0 2015-07-02 14:28:38 +01:00
twinaphex 4109768a9a (libusb_hid.c) Use retro_log.h 2015-06-30 14:48:57 +02:00
twinaphex e74e402cdc More C89 build fixes 2015-06-30 14:37:11 +02:00
twinaphex 96c119bb1d Move retroarch_logger.h to libretro-common/include 2015-06-30 00:38:10 +02:00
twinaphex 80142af594 (libusb) Another API not C89-compliantl 2015-06-29 23:19:02 +02:00
twinaphex 6e1fb7b94d Don't redefine retro_rumble_effect 2015-06-26 20:16:01 +02:00
Alcaro 4ca6c2398c More C89 cleanups, part 3 2015-06-26 18:35:52 +02:00
Alcaro 1bbd54f597 Some C89 strict fixes 2015-06-26 17:03:12 +02:00
twinaphex aa6cdf5d5a Put extern "C" around cocoa_keyboard_event 2015-06-26 16:32:30 +02:00
Alcaro 97f8188969 Clean up some C99 longlongs. 2015-06-26 16:21:50 +02:00
twinaphex a132fa0fba Some C89 build fixes 2015-06-26 15:53:18 +02:00
twinaphex 46c99bd225 (libusb_hid.c) Buildfixes for CXX_BUILD 2015-06-26 13:16:47 +02:00
twinaphex 6988f1bb76 (libusb_hid.c) Define LIBUSB_CAP_HAS_HOTPLUG in case it's not there 2015-06-26 13:06:48 +02:00
twinaphex d61ad058b4 Some CXX_BUILD fixes 2015-06-26 12:38:33 +02:00
twinaphex b679f75f91 (iohidmanager_hid.c) Cleanups 2015-06-25 18:27:28 +02:00
twinaphex 0d50840749 (joypad_connection.c) Cleanups 2015-06-25 18:25:20 +02:00
Twinaphex 227c986143 More CXX_BUILD fixes 2015-06-25 17:40:09 +02:00
twinaphex 1b34dd4ce0 Some more CXX_BUILD fixes 2015-06-25 17:36:31 +02:00
twinaphex 0e2345227a Some CXX_BUILD fixes 2015-06-25 17:25:09 +02:00
twinaphex 0fa871a296 Use rarch_system_info_get_ptr 2015-06-25 13:46:32 +02:00
twinaphex 226b0976fa (keyboard_line.c) Use rarch_system_info_get_ptr 2015-06-25 13:40:53 +02:00
twinaphex 6ee5029bb0 (android_input.c) Use rarch_system_info_get_ptr 2015-06-25 13:20:53 +02:00
Toad King 6416f825ed [GX] fix controllers not loading autoconfig after starting games 2015-06-24 22:42:50 -05:00
twinaphex e4cea13c4f (input_remapping.c) Use fill_pathname_join_delim 2015-06-22 20:44:07 +02:00
twinaphex a4d1d91281 (input_common.c) Use fill_pathname_join_delim 2015-06-22 20:40:11 +02:00
twinaphex bdb3cd9b1c (GX) Build fix 2015-06-22 08:01:13 +02:00
Higor Eurípedes e6ea0319c7 (linuxraw) Fix boolean return in void function 2015-06-21 19:50:58 -03:00
Toad King 8929887f25 allow closing text input windows with cancel button 2015-06-18 21:37:54 -05:00
Twinaphex 55eaff9793 (Menu) Cleanups 2015-06-19 03:46:54 +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 bc592859cc Cleanups 2015-06-15 06:01:54 +02:00
twinaphex 40f8fabda6 Consistency in how we treat positive strcmp matches 2015-06-14 19:56:01 +02:00
twinaphex ad5954862b Cleanup some strcmps 2015-06-14 19:42:25 +02:00
twinaphex 1461386d07 (input_overlay.c) Refactor input_overlay.c to have it use djb2 2015-06-14 16:53:09 +02:00
twinaphex ca4b8385fe (udev_input.c) Include <unistd.h> 2015-06-13 19:16:42 +02:00
twinaphex 35402884e5 (connect_wii.c) Cleanups 2015-06-13 01:59:26 +02:00
twinaphex 123b85dbb0 Change returntype of pad_connection_init 2015-06-13 01:40:55 +02:00
twinaphex daf4f5719b (Input) Cleanups 2015-06-13 00:02:28 +02:00
twinaphex f85965925c (Input) Cleanups 2015-06-12 23:52:52 +02:00
twinaphex 6acdd3db05 (linuxraw_input.c) Add unistd.h header 2015-06-08 11:57:07 +02:00
twinaphex c7e0163450 (PS3) Buildfix 2015-06-08 00:32:21 +02:00
Twinaphex 2b2bf7911a (XInput) Buildfix 2015-06-04 15:33:22 +02:00
twinaphex 2b10519fb8 (linuxraw_input.c) Style nits 2015-06-03 21:38:27 +02:00
twinaphex 77ba9c650f (udev) Use {{0}} for initialization 2015-06-03 21:29:08 +02:00
twinaphex ee017b1516 (udev_joypad.c) Move macros to top 2015-06-03 20:20:25 +02:00
twinaphex a2ee87efe4 Simplify udev_free_pad 2015-06-03 19:55:50 +02:00
twinaphex 47ac99c2db (udev_joypad.c) Fix reconnect issue 2015-06-03 19:50:48 +02:00
twinaphex bfdde9c586 (udev_joypad.c) Refactor udev_add_pad 2015-06-03 19:02:48 +02:00
twinaphex 976428f7fd (udev_joypad.c) Remove 'Device connected' message - autoconfig already
does this
2015-06-03 18:57:43 +02:00
twinaphex 1a5e16ff99 Create input_config_autoconfigure_disconnect 2015-06-03 18:55:04 +02:00
twinaphex c24a5de3a8 (udev_joypad.c) More style nits 2015-06-03 18:39:52 +02:00
twinaphex 23e2dfafd3 (udev_joypad.c) Style nits 2015-06-03 18:36:38 +02:00
twinaphex 22bd3b2d4f (udev_joypad.c) Style nits 2015-06-03 18:31:06 +02:00
twinaphex 17a040e002 (udev_joypad.c) Get rid of some forward declarations 2015-06-03 18:28:54 +02:00
twinaphex 660641f328 Pass handle to input driver to joypad driver's init function 2015-06-03 18:22:54 +02:00
twinaphex bafda714a1 (Input drivers) Cleanups 2015-06-03 18:12:06 +02:00
twinaphex 17ca5a074c (udev_input.c) Cleanups 2015-06-03 17:11:32 +02:00
twinaphex 1532f35376 (udev_input.c) Cleanups 2015-06-03 17:06:22 +02:00
twinaphex 37da7a7fd3 (udev_joypad.c) Cleanups 2015-06-03 15:29:47 +02:00
twinaphex 5b82a6896c (linuxraw_joypad.c) Take out IS_JOYCONFIG ifdefs 2015-06-03 15:27:38 +02:00
twinaphex b56d6bbb01 (udev_joypad.c) Get rid of IS_JOYCONFIG ifdefs 2015-06-03 14:15:39 +02:00
twinaphex dd57369433 udev_free_pad - weird implementation, cleanup 2015-06-03 14:09:30 +02:00
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
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
twinaphex ffd364c5ff Rename btstack.c to btstack_hid.c 2015-04-04 05:23:26 +02:00
twinaphex ecd6ab7027 (BTStack) Rename btstack_hid.c to btstack.c 2015-04-04 05:22:14 +02:00
twinaphex 03d6e3a109 (null_hid.c) Add header include 2015-04-04 02:41:12 +02:00
twinaphex c73377857b (iOS) Get rid of apple_ios_joypad - refactored into btstack HID driver 2015-04-04 02:09:31 +02:00
twinaphex 9bfe575a90 (BTStack) Refactor btstack_hid to become a driver 2015-04-04 02:07:18 +02:00
twinaphex 0b09237741 (btstack_hid.c) Cleanups 2015-04-04 01:45:04 +02:00
twinaphex 55a162a77b (btstack_hid) Cleanups 2015-04-04 01:41:20 +02:00
twinaphex 677723ba3c (btstack.h) Cleanups 2015-04-04 01:06:50 +02:00
Twinaphex 2b420f0b3e (iOS) Buildfix 2015-04-04 01:03:32 +02:00
twinaphex 68b4304efd (HID) Move btdynamic/btpad to input/drivers_hid 2015-04-04 00:58:38 +02:00
twinaphex 5e83eefd81 Add VID/PID detection for joypad connection 2015-04-03 23:30:51 +02:00
twinaphex 61edabf6f4 (libusb) Correct send_control function implementation 2015-04-03 20:49:49 +02:00
twinaphex 606eaa59ae (libusb_hid) Cleanup 2015-04-03 19:33:47 +02:00
Twinaphex 3c9e702320 (apple_hid.c) Cleanup 2015-04-03 19:21:44 +02:00
twinaphex b3be54721e (libusb) Cleanups 2015-04-03 19:02:35 +02:00
twinaphex b0d740ea09 (libusb) Further fleshing out 2015-04-03 18:52:48 +02:00
twinaphex 76b52e4f57 (Libusb HID) Flesh out driver some more 2015-04-03 05:26:58 +02:00
Twinaphex e87cd94fed (HID) Simplify apple_hid_joypad_button/apple_hid_joypad_axis, etc 2015-04-03 05:06:10 +02:00
twinaphex 9d5f44a7c6 (connect_wii.c) Cleanups 2015-04-03 03:14:57 +02:00
twinaphex 05b8fbf1aa (connect_wii.c) hidpad_wii_get_axis - style nits 2015-04-03 03:07:44 +02:00
Twinaphex b9d244bd3b (connect_wii.c) Refactor hidpad_wii_axis 2015-04-03 03:06:37 +02:00
twinaphex e7c7b55004 (connect_wii.c) Dehardcode some magic numbers 2015-04-03 02:56:37 +02:00
twinaphex 7665226f4c (connect_wii.c) Get rid of two unused macros 2015-04-03 02:52:20 +02:00
twinaphex 5fdaa293fb Rename winxinput_joypad to xinput_joypad 2015-04-03 02:37:10 +02:00
twinaphex e997f9a477 (QNX) Namespace functions 2015-04-03 01:39:13 +02:00
twinaphex 5fd1ff826a (input) Namespace functions 2015-04-03 01:37:20 +02:00
twinaphex 7fc95a1726 (input_autodetect.c) Move enum to top 2015-04-03 01:22:55 +02:00
twinaphex 494a190c5b (drivers_joypad) Cleanups 2015-04-03 01:19:51 +02:00
twinaphex 4205b3e8f3 (input) Cleanups 2015-04-03 01:02:46 +02:00
twinaphex ae922a9593 (qnx_input.c) Cleanups 2015-04-03 00:57:54 +02:00
twinaphex 0fa5fd91dd (libusb) Start allocating and freeing joypad connections 2015-04-02 22:51:04 +02:00
Twinaphex 79431fcc7e (connect_wii.c) Change type of state variable 2015-04-02 22:46:11 +02:00
Twinaphex 682ec250eb (connect_wii.c) Fix 2015-04-02 20:48:38 +02:00
twinaphex e0a5a77034 (connect_wii.c) Cleanups 2015-04-02 20:27:47 +02:00
twinaphex b2a2af2355 (connect_wii.c) Buildfix 2015-04-02 19:55:45 +02:00
twinaphex 469b939dfc (connect_wii.c) Don't rely on htonl/htons for endian byte swapping 2015-04-02 19:52:47 +02:00
twinaphex 8bd0253c27 (connect_wii.c) Cleanups 2015-04-02 18:52:58 +02:00
twinaphex 6433cdf2e7 (input/connect) Cleanups 2015-04-02 18:48:44 +02:00
twinaphex b202d54dd3 Rename null joypad driver 2015-04-02 18:44:02 +02:00
twinaphex 37acf75b4c Rename most joypad drivers - should now all have consistent names 2015-04-02 18:42:15 +02:00
Twinaphex 119dcdd163 (iOS) Buildfix 2015-04-02 18:34:10 +02:00
twinaphex 6ea55bfaa9 (connect_ps4.c) Fix condition check 2015-04-02 18:28:29 +02:00
twinaphex f8823836de (connect_wii.c) Get rid of 'byte' typedef 2015-04-02 18:12:21 +02:00
twinaphex b9e6b014e3 Start preparing joypad_connection code for cross-platform purposes 2015-04-02 17:49:32 +02:00
twinaphex 0c2548bd25 (libusb) Start passing userdata pointer to hotplug callback 2015-04-02 17:28:30 +02:00
twinaphex f8b405a4d2 (libusb) Add manufacturer descriptor/device descriptor to interface struct 2015-04-02 17:16:51 +02:00
twinaphex e1d67f23b1 (apple_hid.c) Cleanup 2015-04-02 16:54:23 +02:00
twinaphex 6c4e92f0ca (apple_hid.c) style nits 2015-04-02 16:49:50 +02:00
Twinaphex 92fc29a762 (Apple HID) Cleanups 2015-04-02 16:47:36 +02:00
Twinaphex d9b96374f0 Merge pull request #1568 from lioncash/retval
hid: Fix return of potentially uninitialized pointers
2015-04-02 15:45:22 +02:00
twinaphex d3db9d2335 (Libusb/HID) Start adding preliminary libusb HID driver - based
on https://github.com/nonolith/libusb/blob/master/examples/hotplug.c and https://github.com/ToadKing/wii-u-gc-adapter/blob/master/wii-u-gc-adapter.c
2015-04-02 15:43:23 +02:00
Lioncash c947b4c6a2 hid: Fix return of potentially uninitialized pointers
After a pointer is freed it's considered to be a dangling pointer. Returning a dangling pointer is undefined behavior.
2015-04-02 09:16:26 -04:00
SuperrSonic 17bb05d3d1 (Wii) Simple fix for Wiimote not connecting after
... loading game, core, history, exiting, anything that reloads RA.
2015-04-02 04:36:46 -04:00
aliaspider c2d3299d4e (3DS) add the ability to open the menu with L+R+Start+Select. 2015-04-02 02:38:49 +01:00
aliaspider 27bd10b21d implement a very basic input driver, will need to be implemented
correctly later.
2015-04-02 02:19:21 +01:00
twinaphex 5612545b25 (CTR/3DS) Update copyright headers 2015-04-02 01:43:28 +02:00
twinaphex 9ade0a8a7f (HID) Create null_hid 2015-04-02 00:20:38 +02:00
Twinaphex 6f8194bf65 (Apple HID) Use ident name of HID input driver 2015-04-02 00:02:32 +02:00
Twinaphex f04f4e8b93 (HID) Buildfix 2015-04-01 23:33:21 +02:00
Twinaphex db2dd5010b Merge pull request #1559 from aliaspider/master
preliminary 3DS port.
2015-04-01 23:18:12 +02:00
Twinaphex 05db495f63 (HID) Cleanups 2015-04-01 23:16:43 +02:00
aliaspider 2045cee432 preliminary 3DS port. 2015-04-01 22:14:13 +01:00
Twinaphex 4ec9a7542c (Apple HID) Buildfix 2015-04-01 23:05:59 +02:00
twinaphex ff65ad8652 (Apple HID) Cleanups 2015-04-01 23:05:02 +02:00
Twinaphex 89105bda56 (Apple HID) Updates 2015-04-01 22:57:15 +02:00
twinaphex 43bb5c81cc Start creating input HID driver interface, etc. 2015-04-01 22:31:43 +02:00
Twinaphex f9d98cccd3 (Apple HID) Refactor 2015-04-01 20:49:26 +02:00
Twinaphex ee43f89aa7 (HID) Buildfix 2015-04-01 20:02:59 +02:00
twinaphex f1533f8ebf (HID) Start refactoring the Apple HID joypad driver to be a more
general-purpose HID joypad driver
2015-04-01 20:00:38 +02:00
Twinaphex 9f319e60e1 (Apple HID) Some more refactors 2015-04-01 16:13:14 +02:00
Twinaphex 6b3fc76154 (Apple HID) Cleanups 2015-04-01 15:46:07 +02:00
Twinaphex dc52663281 (Apple HID) Create apple_hid_get_product_string 2015-04-01 15:32:30 +02:00
Twinaphex 34439fc432 (input_autodetect.c) Add AUTODETECT_MATCH_* rule 2015-04-01 02:55:30 +02:00
Twinaphex 013038d3ef (connect_ps4.c) Cleanups 2015-04-01 01:23:43 +02:00
Twinaphex 28a85d9331 (connect_ps4.c) Make analog work 2015-04-01 00:20:39 +02:00
Twinaphex 467c007864 (connect_ps4.c) PS4 pad works now - TODO: analog/rumble (potential FUTURE: touchpad and other stuff) 2015-03-31 22:28:56 +02:00
Twinaphex 7e97764882 (connect_ps4.c) Update 2015-03-31 21:42:43 +02:00
Twinaphex a4190a9c3f (PS4/connect_ps4.c) Update 2015-03-31 21:40:22 +02:00
Twinaphex ebd85ea02b (PS4/joypad_connection) PS4 joypad is starting to work 2015-03-31 21:18:21 +02:00
Twinaphex 047fdbd3fc (PS4/joypad_connection) Changes 2015-03-31 19:23:06 +02:00
Twinaphex b9da2bc32f (Apple HID) Handle iOHIDDeviceOpen not returning success 2015-03-31 16:55:23 +02:00
Twinaphex d93854a924 (Apple HID) Create apple_hid_manager_init/apple_hid_manager_exit wrapper functions 2015-03-31 16:51:04 +02:00
Twinaphex f853c39d5f (apple_hid.c) Get rid of unnecessary log message 2015-03-31 16:39:28 +02:00
Twinaphex 2b399234d3 (OSX) Should now properly show device name of pad being disconnected 2015-03-31 16:35:20 +02:00
Twinaphex 9f8f054b41 Correct apple_hid_get_product_id 2015-03-31 16:28:46 +02:00
Twinaphex 43fe95ce93 (Apple HID) Mundane style nits 2015-03-31 16:03:06 +02:00
Twinaphex 5d49f7671b (Apple HID) Cleanup add_device callback function 2015-03-31 16:00:11 +02:00
Twinaphex 56736d4eeb (Apple HID) Cleanups 2015-03-31 15:44:19 +02:00
Twinaphex 0807ac0165 (apple_hid.c) Deallocate hid_apple properly in apple_hid_free 2015-03-31 15:15:54 +02:00
Twinaphex da428a70d3 (Apple) apple_joypad_hid.c is going to become a more generic
'HID joypad' driver
2015-03-31 15:14:39 +02:00
Twinaphex f473d6237f (Apple) Dirty buildfix for now 2015-03-31 14:46:44 +02:00
twinaphex cdee9eb9d8 Split up Apple HID code to input/drivers_hid/apple_hid.c 2015-03-31 14:44:51 +02:00
Twinaphex b88f7b3af5 (iOS) Create iOS 6 scheme 2015-03-31 01:58:55 +02:00
Twinaphex 8a33670c7c (iOS) Move included source files to Griffin 2015-03-30 22:29:30 +02:00
neville ddb5aab3ed (OSX PPC) Start making things more backwards compatible with OSX 10.4 - avoid CGFloat, NSUinteger, NSInteger, use <AvailabilityMacros.h> instead of <Availability.h>, etc. 2015-03-30 17:10:31 +02:00
Twinaphex 3a3653b3b7 Merge pull request #1552 from aliaspider/master
(menu) add experimental touch controls.
2015-03-28 22:59:19 +01:00
aliaspider 560c98f3cb (menu) add pointer support (active only for rgui for now) 2015-03-28 22:35:18 +01:00
twinaphex 7ac7b15718 (input_autodetect.c) Some fixes 2015-03-28 22:20:05 +01:00
twinaphex 765e9c0361 Return an unsigned value that indicates which values were found 2015-03-27 18:50:40 +01:00
twinaphex 9923e6a021 (input_autodetect.c) Further cleanups 2015-03-27 18:05:43 +01:00
twinaphex f88e62b3d2 Create input_autoconfigure_joypad_from_conf_internal 2015-03-27 18:02:21 +01:00
twinaphex 782f366131 Cleanup comments 2015-03-27 17:55:00 +01:00
twinaphex 54f2d61809 input_autodetect.c - don't need runloop.h header 2015-03-27 17:53:06 +01:00
twinaphex 3985497552 Small cleanup 2015-03-27 17:48:27 +01:00
twinaphex 948e9a1888 (input_autodetect) Cleanups pt. 5 2015-03-27 17:47:15 +01:00
twinaphex 6917982686 Cleanup input_try_autoconfig_joypad 2015-03-27 17:39:11 +01:00
twinaphex bf0693fcb0 (input_autodetect.c ) Cleanups pt. 4 2015-03-27 17:34:09 +01:00
twinaphex c5ece757d8 (input_autodetect.c) Cleanups pt. 3 2015-03-27 17:31:59 +01:00
twinaphex 57a1f6d9a0 Cleanups 2015-03-27 17:27:21 +01:00
twinaphex 14270babe5 (input_autodetect.c) Cleanups pt. 2 2015-03-27 17:10:09 +01:00
twinaphex 28faf469a0 Cleanups 2015-03-27 17:02:55 +01:00
twinaphex 226c6ff41a Simplify input_autodetect 2015-03-27 16:57:58 +01:00
Radius 2f2a86e97f add osk enable hotkey 2015-03-25 22:24:12 -05:00
twinaphex 8223969226 (PSP) Buildfix 2015-03-24 10:30:05 +01:00
twinaphex cda414b27d (Android) Go through input_driver_key_pressed 2015-03-24 08:53:49 +01:00
twinaphex 91b03d914d (input_driver.c) Cleanups 2015-03-24 08:35:55 +01: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 3b87f5bb69 Fix input_driver_state 2015-03-24 05:59:01 +01:00
twinaphex d6981c3aad Cleanups 2015-03-23 07:34:18 +01:00
twinaphex f5b2b8fdf7 Create input_driver_free 2015-03-23 07:15:41 +01:00
twinaphex 95664b038e Create input_driver_init 2015-03-23 07:07:28 +01:00
twinaphex 0d164162fc Create input_driver_grab_mouse 2015-03-23 04:31:11 +01:00
twinaphex 5f8407e16c Use input_driver_get_capabilities 2015-03-23 04:18:27 +01:00
twinaphex d9ba52e018 Create input_driver_get_joypad_driver 2015-03-23 03:40:09 +01:00
twinaphex c274ab94a0 Create input_driver_key_pressed 2015-03-23 03:22:57 +01:00
twinaphex 71e927020c Create input_driver_poll 2015-03-23 03:17:43 +01:00
twinaphex db1087ad33 Create input_driver_state 2015-03-23 03:04:05 +01:00
twinaphex da53a4c683 Create video_driver_overlay_interface 2015-03-22 23:44:58 +01:00
twinaphex 7243c43cda Create video_driver_focus 2015-03-22 23:40:22 +01:00
twinaphex e3eb9fe9f0 Create video_driver_viewport_info 2015-03-22 21:28:50 +01:00
twinaphex 13de784dfc Style nits 2015-03-22 08:14:36 +01:00
twinaphex 842d0aafa5 (input_overlay.c) Cleanups 2015-03-22 04:02:04 +01:00
twinaphex 713c7f6093 Cleanup input_overlay_load_desc_image 2015-03-22 03:56:57 +01:00
twinaphex cd77bc7f68 Simplify input_overlay_load_desc_image 2015-03-22 03:55:04 +01:00
twinaphex f3fefa2ceb (QNX) Build fixes 2015-03-21 22:55:50 +01:00
twinaphex 5a443d229a global_get_ptr update pt. 2 2015-03-21 05:42:49 +01:00
twinaphex 55ba05a1a3 Updates pt. 6 2015-03-20 22:41:15 +01:00
twinaphex 5ad9f131ce Updates pt. 5 2015-03-20 22:32:09 +01:00
twinaphex 5d8ce54a9f Updates pt. 4 2015-03-20 22:22:06 +01:00
twinaphex e996d5d51f Updates 2015-03-20 21:22:38 +01:00
twinaphex b97ea7bc8d Create input_overlay_load_texture_image 2015-03-20 04:12:17 +01:00
twinaphex 1457e50ae5 (Overlay) input_overlay_load_overlays_iterate - cleanups 2015-03-20 03:30:17 +01:00
twinaphex 2a82d4a3c0 (input_overlay.c) Move some code over to texture loading code 2015-03-20 03:26:48 +01:00
twinaphex 9e432b4251 (Overlay) Remove unused variables 2015-03-20 01:47:11 +01:00
twinaphex 97d73557d8 (Overlay) Create OVERLAY_IMAGE_TRANSFER_DESC_IMAGE_ITERATE 2015-03-19 23:13:25 +01:00
twinaphex 758039c3f5 Simplify input_overlay_load_desc 2015-03-19 23:02:50 +01:00
twinaphex ada29dcbd6 Simplify input_overlay.c 2015-03-19 22:52:15 +01:00
twinaphex 8d0297dfe1 (input_overlay.c) Take out general.h include 2015-03-19 04:28:40 +01:00
twinaphex 1e9725a302 (Android) Buildfix 2015-03-18 20:26:55 +01:00
twinaphex 5976da19c4 (Win32) buildfix 2015-03-18 20:23:18 +01:00
Twinaphex 0782cb5168 (Apple) Build fixes 2015-03-18 20:15:40 +01:00
twinaphex 3670ef2ac5 Go through driver_get_ptr to grab pointer to driver struct 2015-03-18 19:40:00 +01:00
twinaphex 7378299282 Create rarch_main_get_ptr 2015-03-18 06:47:22 +01:00
Higor Eurípedes 718ca11a43 Remove warnings during clang++ builds 2015-03-16 14:43:56 -03:00
Higor Eurípedes 7d1b2467da (sdl_input.c) Fix CXX build 2015-03-16 14:01:23 -03:00
twinaphex 80a6673004 Fix some CXX_BUILD errors 2015-03-16 16:57:27 +01:00
twinaphex 84e9f2fa7d Use retro_inline throughout 2015-03-15 04:52:46 +01:00
twinaphex 00239a30d6 Create wrapper functions for passing a message to the runloop's
message queue
2015-03-15 02:47:23 +01:00
twinaphex cea8f0cbe0 (Overlay) Change input_overlay_load_overlays 2015-03-15 00:16:57 +01:00
twinaphex c08fff5a0c (Overlay) input_overlay_load_overlays - split up init part into separate
function
2015-03-14 23:47:13 +01:00
twinaphex 03cda5b208 (Overlay) Take for loop out of input_overlay_load_overlay 2015-03-14 06:29:45 +01:00
twinaphex 35a1582be4 (Overlay) input_overlay_load_overlay - refactor 2015-03-14 06:19:16 +01:00
twinaphex aed8d1887d (Overlay) Cache config file once and clean it up when no longer needed -
config_file_new was taking up at least 11% of rarch_main_iterate_overlay_state's
CPU activity (23.3% in total on OSX)  - should now be far more efficient
2015-03-14 05:45:48 +01:00
Andrés 53265b742d Fix windows build 2015-03-12 22:47:58 -05:00
twinaphex 0b5105433f (Windows) Add MOUSE_HWHEEL support 2015-03-12 13:35:37 +01:00
twinaphex e366a6eaa2 (Mouse) Start adding preliminary horizontal mouse wheel up/down 2015-03-12 05:38:37 +01:00
Alcaro a3759d7ff1 Apparently these are booleans used as int. Fixing. 2015-03-11 15:37:48 +01:00
Alcaro a60a22424e Fix indentation - should be spaces, not tabs. 2015-03-11 14:08:51 +01:00
Alcaro 7bd444f1fa Let's not miss these input notifications if many arrive at once. 2015-03-11 14:06:58 +01:00
twinaphex 6c7e5f642c (NGC) Buildfix pt. 2 2015-03-11 04:21:32 +01:00
twinaphex f0e75c9259 (NGC) gx_input_joypad.c - buildfix 2015-03-11 04:20:11 +01:00
Twinaphex fcd7cc958a (Apple) Make apple_pointer_state somewhat more robust 2015-03-11 00:43:07 +01:00
Twinaphex fe747a77d0 (OSX) Add stub scroll wheel 2015-03-11 00:35:51 +01:00
twinaphex 667a461c89 (Windows/Mouse) Wheel works now in normal mode - doesn't work in
grabbed mouse state (exclusive foreground mode)
2015-03-10 23:40:54 +01:00
Jean-André Santoni a26a46d4de (Apple) Fix mouse movements 2015-03-10 18:44:55 +01:00
twinaphex 2a40cd5939 (keyboard_event) Cleanups 2015-03-09 19:04:10 +01:00
twinaphex 498d43960d (udev_joypad_hat) Cleanup 2015-03-09 19:01:12 +01:00
twinaphex 894076f52d (xdk_xinput_input) Cleanup 2015-03-09 19:00:01 +01:00
twinaphex ec01703098 (Input) Cleanups 2015-03-09 18:58:09 +01:00
twinaphex 509e2e2851 (X11 input) Cleanups 2015-03-09 18:55:26 +01:00
twinaphex 74332fbd14 (GLX) Implement mouse wheel up/down for GLX context driver 2015-03-09 17:44:19 +01:00
twinaphex 0ab0fdf709 (Menu) Implement wheel up/down - will need kivutar to implement this
better
2015-03-09 16:36:49 +01:00
twinaphex b93b9d8b58 (udev) Implement wheel up/wheel down 2015-03-09 16:23:22 +01:00
Twinaphex 3ec863d4a5 (Apple HID) Use CFRUnLoopGetCurrent() instead of CFRunLoopGetMain() 2015-03-07 15:47:23 +01:00
twinaphex 795ef467ac Move msg_queue and nbio/http to runloop struct 2015-03-07 13:01:41 +01:00
twinaphex a74cb0574b Create g_runloop and start moving variables there 2015-03-07 12:36:50 +01:00
Twinaphex 935d6a54b8 (Apple HID) Don't call IOHIDDeviceClose in removal callback function 2015-03-06 21:56:10 +01:00
twinaphex b89e415018 (Overlay) Simplify some code 2015-02-28 08:00:15 +01:00
twinaphex f30e82bced Remove input_overlay_load_overlay_image 2015-02-27 06:53:10 +01:00
twinaphex fd5e6958fa (Overlay) Should now properly set up first overlay screen as quickly
as possible
2015-02-27 02:26:15 +01:00
twinaphex ec339c184d Set ol->resolve_pos to 0 beforehand 2015-02-27 02:22:05 +01:00
twinaphex d510a502e5 Create ol->resolve_pos 2015-02-27 02:21:17 +01:00
twinaphex 34622f63ed (Overlay) Back to the drawing board 2015-02-27 01:25:08 +01:00
Googer 03b4ace443 (Android) Fix pad input detection for pre-KitKat.
Also update getting system properties to use getprop command instead of
__system_property_get.  Use sdk level to determine which gamepad
detection method to use (only use vendorId and productId if at least
KitKat - i.e., SDK version 19+).
2015-02-24 12:20:21 -05:00
twinaphex cb53153fa1 Update comment in load_overlay_image_done 2015-02-23 22:35:01 +01:00
twinaphex ef91d9a528 Make function static 2015-02-23 22:11:18 +01:00
twinaphex a41c159ece Load first active overlay immediately - much faster 2015-02-23 21:49:08 +01:00
twinaphex 00beda42f2 Add pos_increment to allow us to iterate through steps 2015-02-23 21:14:34 +01:00
twinaphex 89685c5709 Add OVERLAY_IMAGE_TRANSFER_DESC_ITERATE and OVERLAY_IMAGE_TRANSFER_DESC_DONE 2015-02-23 20:57:49 +01:00
twinaphex d44ebefd49 Move more logic to load_overlays 2015-02-23 19:21:28 +01:00
twinaphex 3af7656d42 Move more to load_overlays 2015-02-23 19:18:51 +01:00
twinaphex bdd5df32a8 Move more out of input_overlay_load_overlay 2015-02-23 19:06:22 +01:00
twinaphex fafbadafba Start moving more logic from input_overlay_load_overlay to input_overlay_load_overlays 2015-02-23 18:53:13 +01:00
twinaphex c67ab04e2b (Overlay) Cleanups 2015-02-23 09:28:15 +01:00
twinaphex a5832f4fb1 (Overlay) Cleanup 2015-02-23 09:26:35 +01:00
twinaphex a8ccb02b52 (overlays) If image could be found, set loading status to 'BUSY', otherwise,
set to 'DONE'
2015-02-23 09:25:05 +01:00
twinaphex ea3d55582a Refactor OVERLAY_IMAGE_TRANSFER_NONE 2015-02-23 09:15:33 +01:00
twinaphex 50e731776b Call config_file_free() at end of input_overlay_load_overlay 2015-02-23 09:13:23 +01:00
twinaphex d4abbd9c83 (Input overlay) Get rid of cached config file 2015-02-23 09:07:04 +01:00
twinaphex 29b250885c Refactor #2 2015-02-23 07:34:14 +01:00
twinaphex 784be49f2f (Overlay) Split up code some more 2015-02-23 07:30:57 +01:00
twinaphex 35bc3a2b3e Split up code in input_overlay_load_overlays_iterate 2015-02-23 07:26:34 +01:00
twinaphex a4a451f8d7 Refactor input_overlay_load_overlays_iterate 2015-02-23 06:52:20 +01:00
twinaphex 4a7ce3e460 Simplify input_overlay.c 2015-02-23 06:37:27 +01:00
twinaphex 2390e17fc7 (Overlay) Add some logic 2015-02-23 06:03:53 +01:00
twinaphex d09574bb1f Move files around 2015-02-22 04:56:18 +01:00
twinaphex 0595189fab Create OVERLAY_STATUS_DEFERRED_LOADING_IMAGE 2015-02-21 22:00:12 +01:00
twinaphex d349b2a37a Split up input_overlay_load_overlay into two functions 2015-02-21 21:20:21 +01:00
Twinaphex 8bd698d132 (input_overlay.c) Remove unused variable 2015-02-21 10:02:49 +01:00
twinaphex a36e2d2a30 Cut down on continuous opening/closing of config file - keep it
cached
2015-02-21 09:41:29 +01:00
twinaphex 7268eab3e8 Create two more iteration phases for overlays 2015-02-21 09:26:52 +01:00
twinaphex 50baeba22a Fix race condition issue in threaded video mode when OSK is
brought up/down
2015-02-21 08:42:19 +01:00
twinaphex 61bbb2a3fb Start making overlay loading 'deferred' 2015-02-21 07:29:13 +01:00
twinaphex 6b77b263f7 Split up input_overlay_new 2015-02-21 06:47:04 +01:00
Higor Eurípedes f8e4fa25bb (griffin) Fix udev drivers build 2015-02-20 23:35:39 -03:00
twinaphex 87edea6bd9 (MSVC) Build fixes 2015-02-16 16:51:23 +01:00
twinaphex 04da700a91 (input_overlay.c) Cleanups 2015-02-15 07:01:32 +01:00
twinaphex 8ace562670 Prevent segfault in overlay function 2015-02-15 06:57:02 +01:00
Twinaphex 86236a9007 Refactor apple_joypad_hid.c somewhat 2015-02-15 04:07:22 +01:00
twinaphex cf4b43f3fa (joypad_connection) Cleanups 2015-02-15 03:59:57 +01:00
twinaphex 65f6d2253d (joypad_connection.c ) change 'used' to 'connected' 2015-02-15 03:54:38 +01:00
twinaphex 738d70d2f8 Add get_buttons callback 2015-02-15 01:57:29 +01:00
twinaphex 207181135c Create input_driver_keys_pressed 2015-02-15 01:19:06 +01:00
twinaphex 31a54223e5 Get rid of useless wrapper function around button presses 2015-02-15 00:42:40 +01:00
twinaphex 64446ef497 Rename and move rarch_viewport 2015-02-14 05:52:05 +01:00
twinaphex 3b2e11c446 (udev_joypad.c) Cleanup 2015-02-11 06:44:16 +01:00
twinaphex 8fca12257a (Apple) Input cleanups 2015-02-11 02:16:33 +01:00
twinaphex b7d845df77 input_joypad_pressed - cleanup 2015-02-10 18:26:56 +01:00
twinaphex 7dd338f19d Cleanups in input_joypad_driver.c 2015-01-30 07:57:15 +01:00
twinaphex 0cc50ed4ea (input_driver.c) Cleanups in config_get_input_driver_options 2015-01-30 07:45:14 +01:00
Twinaphex fc21fdbca6 (Apple) Build fixes 2015-01-30 00:02:16 +01:00
twinaphex 0912f05d39 Fix bug 2015-01-29 23:59:46 +01:00
twinaphex bae3650d44 input_keyboard_line_toggle_osk - early return if OSK is not
enabled
2015-01-29 23:35:06 +01:00
twinaphex 10fd97c5d0 (Windows) Build fixes 2015-01-29 23:30:09 +01:00
Twinaphex 9c49f71e18 (Apple) Build fixes 2015-01-29 23:13:11 +01:00
twinaphex ed7da3f632 Get rid of last param to keyboard_input_event 2015-01-29 23:12:42 +01:00
twinaphex d327863d0f Only carry one input overlay state 2015-01-29 22:54:42 +01:00
twinaphex 28f6922520 Cleanups 2015-01-29 20:51:07 +01:00
twinaphex d513c01775 Get rid of debug comment 2015-01-29 20:36:06 +01:00
twinaphex fc373630ce Start to approach OSK driver in a different way 2015-01-29 20:33:27 +01:00
twinaphex f258950bcf Keyboard input overlays can now be used as input device
for keyboard line events
2015-01-29 07:03:20 +01:00
twinaphex 8e95e87b2f Revert "Part 1 of menu input remapping"
This reverts commit 5b2d950034.
2015-01-25 04:52:26 +01:00
twinaphex 85441f34a7 Revert "Part 2 of menu input remapping"
This reverts commit 19d090d3ae.
2015-01-25 04:52:16 +01:00
twinaphex 19d090d3ae Part 2 of menu input remapping 2015-01-25 03:32:03 +01:00
twinaphex 5b2d950034 Part 1 of menu input remapping 2015-01-25 02:14:04 +01:00
twinaphex 724e748254 Implement action_start callback for remap_file_load 2015-01-24 23:49:35 +01:00
twinaphex 5419757c40 Add input remapping saving/loading 2015-01-24 23:42:31 +01:00
Higor Eurípedes c756a643dd linuxraw_joypad.c - Fix button polling 2015-01-20 21:15:43 -03:00
Higor Eurípedes c3c734c159 linuxraw_joypad.c - Use C89 comments 2015-01-20 21:15:43 -03:00
Twinaphex 77a7b39e88 (OSX) Cleanups 2015-01-19 21:11:08 +01:00
twinaphex 40002970d3 Cleanup in input_remapping_save_file 2015-01-19 18:35:22 +01:00
twinaphex e1faebe5c2 (input_remapping) Get rid of some header includes 2015-01-19 18:17:34 +01:00
twinaphex 068943445f (Input) Add input remapping files 2015-01-19 18:16:34 +01:00
Twinaphex da24b62de9 (Apple) Build fixes 2015-01-19 05:05:41 +01:00
twinaphex 824f00be15 (input/connect) Cleanups 2015-01-19 05:01:31 +01:00
twinaphex 94ca700059 (input_common.c) Fix potential uninitialized variable in input_push_analog_dpad 2015-01-19 04:33:26 +01:00
twinaphex 3ec9005c5c Move set_rumble function to input/input_driver.c 2015-01-19 04:16:43 +01:00
twinaphex 20d844d15a Refactor input_push_analog_dpad 2015-01-18 20:36:52 +01:00
twinaphex 61f28bc000 Refactor input_keyboard_event 2015-01-18 19:39:58 +01:00
twinaphex be3ac6eccd Split up sensor code into its own file 2015-01-18 19:28:51 +01:00
Twinaphex a5b306406c More documentation 2015-01-18 09:25:48 +01:00
twinaphex 46402deb04 Use PATH_MAX_LENGTH instead of PATH_MAX.
Refactor OSX settings menu code somewhat
2015-01-17 05:47:52 +01:00
twinaphex 26ab324727 (OSX 10.6) Fix declaration shadows global variable warnings 2015-01-15 21:10:36 +01:00
twinaphex a2b05d31b1 (input) Cleanups 2015-01-14 23:15:24 +01:00
twinaphex 6cdaa4e282 (MSVC) Build fixes 2015-01-12 22:47:12 +01:00