Commit Graph

324 Commits

Author SHA1 Message Date
twinaphex 10e35d4d75 Small cleanup 2016-08-08 01:21:20 +02:00
twinaphex ecc625dbf1 (Vita) Implement multiplayer hack 2016-08-08 01:19:16 +02:00
twinaphex 80b82606d4 This is the same now 2016-08-07 20:35:40 +02:00
Francisco José García García ab9b2f5998 (VITA) Add PSTV two players mode 2016-08-07 20:15:43 +02:00
twinaphex 24817aeeac (Vita) Autoconfigure gamepads 2016-08-07 17:22:34 +02:00
twinaphex 33a1a70aa8 (Vita) Try this 2016-08-07 17:18:55 +02:00
twinaphex 3964dfc2de (PSP/Vita) Refactors 2016-08-07 14:55:47 +02:00
twinaphex 632cc0ef6c (Vita) Start setting up Vita for multiplayer 2016-08-07 14:52:41 +02:00
twinaphex 9e2925ea23 Start dehardcoding PSP joypad for only one gamepad - multiple
gamepads could maybe be used on PS TV
2016-08-02 17:04:00 +02:00
twinaphex 64d6e0facf (Vita) Implement proper gamepad menu toggle combo for Vita, and remove
old hack
2016-08-02 16:48:54 +02:00
Alcaro f5881c17ef Use the same format as in the autoconfigs 2016-06-30 22:06:51 +02:00
twinaphex bfa6f49ae6 Fix logically dead code warnings 2016-05-24 22:12:51 +02:00
twinaphex 974d3245d2 Fix logically dead code warnings 2016-05-23 22:04:00 +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 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 8caee50fcd (GX) Add way to handle power callback 2016-01-13 08:27:58 +01:00
twinaphex 347a18cb30 Update input headers 2016-01-10 04:33:01 +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 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
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 b8bbdc6f4c Revert udev drivers 2015-12-17 03:02:48 +01:00
twinaphex 2d55dc3bda Complete namespace changes 2015-12-07 15:32:14 +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
twinaphex 736f343d9f Create RARCH_MENU_CTL_IS_ALIVE 2015-12-05 13:49:34 +01:00
twinaphex 2f29d9f18c Take out menu/menu_driver.h include from driver.h 2015-12-05 13:22:50 +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 50f3999e9b Backport/rewrites wmarquesr pt. 8 2015-12-04 11:11:05 +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 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 d15ad86705 Create hid_driver_get_data 2015-11-29 21:11:57 +01:00
twinaphex 5e1b2b3bfa Move driver->input_data to input_driver.c 2015-11-29 18:18:25 +01:00
twinaphex dc7e8bc52b Cleanup android_joypad_query_pad 2015-11-29 16:35:51 +01:00
twinaphex 2d455d78b3 Move inptu state to android_joypad.c 2015-11-29 16:18:29 +01:00
twinaphex 127448f848 Use video_driver_window_get 2015-11-29 01:39:28 +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 c23846c5dc Merged input_joypad.c and input_joypad_driver.c 2015-11-28 16:22:49 +01:00
twinaphex a6ccc188a8 Rename input_common.c to input_config.c 2015-11-28 02:22:58 +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
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 d399bc11e2 (MFi) Reimplement analog support 2015-11-18 04:54:08 +01:00
Twinaphex a26482d302 (mfi_joypad.m) Use local headers 2015-11-17 08:29:21 +01:00
twinaphex 66ba102271 (MFi) Style nits 2015-11-16 11:14:36 +01:00
twinaphex f967b07f19 (MFi) Buildfix 2015-11-16 11:12:00 +01:00
twinaphex 0e0db66f79 (mfi_joypad.m) should now work for regular mfi pads, courtesy of vinikun-mac 2015-11-16 10:34:02 +01:00
Twinaphex c84b76c394 (MFi) No longer let MFi pad go through 'pad connection' 2015-11-16 08:45:51 +01:00
Twinaphex 1c304779a9 (mfi_joypad.m) Remove cocoa header 2015-11-16 06:13:28 +01:00
twinaphex 4d1d422541 (mfi_joypad.m) Remove dependency on CocoaTouch data 2015-11-16 06:07:24 +01:00
twinaphex e882709e63 (mfi_joypad.m) Indenting nits 2015-11-16 05:10:20 +01:00
Twinaphex ecdaa1885b Nit 2015-11-16 04:41:19 +01:00
Twinaphex 730ae2c52d (mfi_joypad.m) Cleanup 2015-11-16 04:38:44 +01:00
twinaphex 40b22b4d17 Move mfi_buttons state to drivers_joypad/mfi_joypad.m 2015-11-16 04:38:06 +01:00
twinaphex f906814abe mfi_buttons should be only used now from within input/drivers_joypad/mfi_joypad.m 2015-11-16 04:32:04 +01:00
twinaphex 8b56ee5624 (mfi_joypad.m) Style nits 2015-11-16 03:53:36 +01:00
Twinaphex db35a28e50 Revert "Refactor slots to be a part of input_hid_driver.c now"
This reverts commit 646ded9d1c.
2015-11-16 03:48:51 +01:00
Twinaphex f089fff42f Revert "Fix warnings"
This reverts commit 8d67d5175e.
2015-11-16 03:48:44 +01:00
twinaphex 8d67d5175e Fix warnings 2015-11-16 03:40:57 +01:00
twinaphex 646ded9d1c Refactor slots to be a part of input_hid_driver.c now 2015-11-16 03:39:40 +01:00
Twinaphex 57e8cfe1f9 Totally reimplemented MFi support 2015-11-16 02:39:38 +01:00
twinaphex 9fbba11275 Add preliminary mfi_joypad.m 2015-11-16 01:29:51 +01:00
aliaspider a55bbfc04a (CTR/3DS) input: fix analog joypad polling. 2015-10-01 23:56:22 +01:00
twinaphex e986b9e42a Static code analysis cleanups 2015-09-29 17:35:28 +02:00
Twinaphex 1974a3051d Merge pull request #2185 from aliaspider/master
(CTR/3DS) implement right stick analogue polling.
2015-09-29 02:38:14 +02:00
aliaspider 4a4dd8e625 (CTR/3DS) implement right stick analogue polling. 2015-09-28 23:57:05 +01:00
twinaphex 02a5d738fe Static code analysis cleanups 2015-09-28 23:00:22 +02:00
Twinaphex b1f6c88626 Merge pull request #2177 from aliaspider/master
(CTR/3DS) update
2015-09-28 16:21:57 +02:00
twinaphex a79b571d7b Static code analysis fixes 2015-09-28 16:20:26 +02:00
aliaspider ca000f64db (CTR/3DS) add support for new 3ds extra buttons/right stick, not tested.
no analogue support for the right stick.
2015-09-28 14:53:38 +01:00
twinaphex e654c5cb65 Header cleanups 2015-09-05 20:53:56 +02:00
twinaphex 38d099654e Cleanups 2015-09-05 20:49:57 +02:00
twinaphex 4d8b125c4f Cleanups 2015-09-05 20:40:11 +02:00
twinaphex 3e977034a7 (Win32) More buildfixes 2015-09-05 14:10:16 +02:00
Sergi Granell 96146e5313 (Vita) Update vita2d driver
(Vita/PSP) Name some stuff to vita
2015-08-31 15:26:37 +02:00
Alcaro ee2ad0c4bd These aren't executable. 2015-08-12 01:31:03 +02:00
radius 828734e007 don't try to autoconfigure GPIO devices 2015-08-11 17:13:25 -05:00
twinaphex ff3e791d72 (Vita) Compile in input and joypad drivers 2015-08-10 23:19:07 +02:00
Jean-André Santoni c6481b1930 Fix autoconfig saving for udev 2015-07-30 00:25:09 +02:00
Toad King 45e9055a63 don't uninitialize usb during libsicksaxis shutdown, fixes USB devices crashing on load 2015-07-23 19:06:21 -05: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 82feadd350 fix vid/pid saving for dinput, need to add it to other drivers 2015-07-12 15:29:49 -05: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 135ee2f503 Use UINT64_C(1) everywhere instead of 1ULL 2015-07-12 07:53:46 +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
radius 0ea522585d add a function to save controller profiles 2015-07-10 20:15:14 -05:00
twinaphex 2f9e8b44e3 (input) Get rid of remaining unused global pointers 2015-07-10 19:08:58 +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 e2d510e4f6 (GX) No longer depend on global pointer in input driver 2015-07-10 18:44:11 +02: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 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
Jools Wills 9fb753410e cosmetic - fix incorrect tab indentation introduced by 141dbabe3d 2015-07-09 20:03:36 +01: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 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 954121b99c Kill off some console-only hacks to do with lifecycle state 2015-07-09 06:35:18 +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
twinaphex 96c119bb1d Move retroarch_logger.h to libretro-common/include 2015-06-30 00:38:10 +02:00
Alcaro 4ca6c2398c More C89 cleanups, part 3 2015-06-26 18:35:52 +02:00
Alcaro 97f8188969 Clean up some C99 longlongs. 2015-06-26 16:21:50 +02:00
Toad King 6416f825ed [GX] fix controllers not loading autoconfig after starting games 2015-06-24 22:42:50 -05:00
twinaphex daf4f5719b (Input) Cleanups 2015-06-13 00:02:28 +02:00
Twinaphex 2b2bf7911a (XInput) Buildfix 2015-06-04 15:33:22 +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 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
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
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 87d9834d06 Move dylib.c to libretro-common 2015-05-08 09:49:49 +02:00
twinaphex cf1d56dbda (Android) Put input state code on android_input_state_t 2015-04-29 04:48:34 +02:00