Commit Graph

1725 Commits

Author SHA1 Message Date
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