Commit Graph

3418 Commits

Author SHA1 Message Date
twinaphex 70e54b2763 Get rid of unnecessary functions 2019-08-02 18:25:21 +02:00
twinaphex a097ad8a2e Cleanups 2019-08-02 17:44:04 +02:00
twinaphex 7a2d09b4bf Cleanups/rewrites 2019-08-02 17:41:26 +02:00
twinaphex eb3753ee3c (XInput/DirectInput) Show device disconnect messages when unplugging a gamepad 2019-07-28 06:42:30 +02:00
twinaphex 91ef99f9b7 Restore this 2019-07-27 04:28:50 +02:00
twinaphex d28cadef01 Cleanups; turn more functions into static functions 2019-07-27 04:13:33 +02:00
twinaphex 65b4c2595e Update set keyboard mapping code for input driver 2019-07-27 02:21:24 +02:00
Yoshi Sugawara 102f27ee80 iOS/tvOS/macOS: Fix autodetect for mFi controllers: properly call autodetect add on the connect notification, and add call to disconnect on GameController disconnect notification. 2019-07-24 11:45:42 -10:00
twinaphex 2750997724 (dinput) POV defines need mmsystem.h header include 2019-07-23 19:40:22 +02:00
twinaphex 5d8d6e18b2 (Dinput joypad) Prevent input going haywire once pad is disconnected 2019-07-23 18:46:40 +02:00
twinaphex f06607141d dinput_joypad_button - further cleanups 2019-07-23 18:37:28 +02:00
twinaphex 051fb92e83 (Dinput joypad) Cleanup magic numbers mess surrounding
hat code
2019-07-23 18:27:16 +02:00
twinaphex 783027ab96 (Dinput) Lots of pointless ARRAY_SIZE checks when the element size
never changes
2019-07-23 16:07:34 +02:00
twinaphex 642298c8b0 (ps4_joypad.c) C89_BUILD fixes 2019-07-23 15:47:13 +02:00
twinaphex ea4f9b4899 dinput_joypad_button - cleanups 2019-07-23 15:34:24 +02:00
twinaphex e0672e46a5 (Xinput) This variable doesn't need to be set at every button call 2019-07-23 14:32:46 +02:00
twinaphex 02876aecae Cleanups 2019-07-23 14:07:49 +02:00
twinaphex d4255b0e55 Cleanups 2019-07-23 13:59:51 +02:00
rsn8887 c226f0a683 [SWITCH] Fix splitting and joining of joycon controllers
Before this fix, splitting and joining of joycons only ever worked
sporadically.
2019-07-22 23:30:34 -05:00
twinaphex 0f18df5d66 (PS2) Buildfix 2019-07-22 14:45:55 +02:00
twinaphex bee9984745 Update all other input drivers 2019-07-22 01:20:00 +02:00
twinaphex f9f2e2f48d (Android) This should fix the hotkey binding problems 2019-07-22 00:19:05 +02:00
orbea e13ec54dc6 Fix --disable-overlay. 2019-07-21 10:26:42 -07:00
twinaphex cba3eb3968 (Dinput) Refactor dinput_is_pressed 2019-07-21 17:53:51 +02:00
twinaphex f4104f5c9a Regression in
9c73d3305d
- joykey needs to be uint64_t and then is later cast to uint16_t -
is apparently important for hotkeys
2019-07-21 16:22:41 +02:00
twinaphex 66b88b60f2 Simplify this 2019-07-21 16:06:12 +02:00
twinaphex 7be9aef768 (PSP) Buildfix 2019-07-20 16:56:01 +02:00
twinaphex 5de9f85533 Cleanups 2019-07-19 13:01:45 +02:00
twinaphex 4c69dad0ce Define DEFAULT_MAX_PADS inside config.def.h - get rid of the messy
MAX_PADS macros everywhere
2019-07-19 12:55:38 +02:00
twinaphex e1ab933bf2 (Android) These arrays should be at least as big as MAX_USERS 2019-07-18 23:40:32 +02:00
twinaphex 61746c8179 (Android) Refactor android_input_set_rumble to be safer 2019-07-18 20:47:51 +02:00
twinaphex 09c727c0ee (Android) Fix one potential crash on older Android 2019-07-18 18:16:52 +02:00
twinaphex 9e39220390 Turn function static 2019-07-18 17:35:41 +02:00
twinaphex 0cdfd4c542 Use config_file_new_from_path_to_string entirely 2019-07-18 16:15:02 +02:00
twinaphex a6d6c21e52 Rename config_file_new_null to config_file_new_alloc 2019-07-17 19:50:32 +02:00
twinaphex 0c31437c24 Create config_file_new_null 2019-07-17 18:27:53 +02:00
twinaphex 26788850ae (linuxraw) linuxraw_analog_pressed - reimplement to avoid LGTM warnings 2019-07-16 16:54:18 +02:00
twinaphex 0257e01bee Refactor input_autoconfigure_connect - don't return
value - set input device name upon failure implicitly
2019-07-16 15:28:22 +02:00
twinaphex 67c70de8f3 (Drivers joypad) Cleanups 2019-07-16 14:41:09 +02:00
twinaphex f1ea1f1845 (Drivers joypad) Cleanups 2019-07-16 14:39:31 +02:00
twinaphex bf80376d27 Style nits 2019-07-16 14:34:37 +02:00
benoa dacf25c1a1 Wii: Fix HID driver 2019-07-12 17:05:24 +02:00
twinaphex e1613bba6d Cleanups 2019-07-12 16:24:09 +02:00
Twinaphex 28b77e83ab
Merge pull request #9090 from arstn/master
Making mouse pointer working in X11 environment with no Display
2019-07-12 16:19:14 +02:00
twinaphex 27a65714f2 Remove some globals 2019-07-12 00:21:31 +02:00
arstn 63494f88cd
Update input/drivers/udev_input.c
sure. commited already.

Co-Authored-By: Rob Loach <robloach@gmail.com>
2019-07-11 17:25:57 +02:00
arstn c222e6674a Making mouse pointer working in X11 environment with no Display 2019-07-11 09:24:01 +02:00
twinaphex abcfcca1d2 Merge dynamic.c into retroarch.c 2019-07-10 09:54:25 +02:00
twinaphex fa990849ba (Overlay) Cleanups 2019-07-10 07:07:28 +02:00
twinaphex fa2e1fb0c1 overlay_ptr is now a static global variable inside retroarch.c 2019-07-10 06:53:47 +02:00
twinaphex 09f5d2c95d Fix compilation when configuring with --disable-overlay 2019-07-10 05:39:50 +02:00
twinaphex 94af95e1b9 Start refactoring this - overlay_ptr needs to become a static
global variable confined inside retroarch.c
2019-07-10 04:43:50 +02:00
twinaphex 8dd0680cbc Merge input_overlay.c into retroarch.c 2019-07-09 18:13:41 +02:00
twinaphex 6ff25fea2b Move macros 2019-07-09 16:36:29 +02:00
Twinaphex e1d8cdffe9
Merge pull request #9074 from DSkywalk/master
fix wrong udev devices order, fixes #9071
2019-07-09 07:21:35 +02:00
twinaphex a200d9683c (dinput.c) Cleanups 2019-07-08 02:40:09 +02:00
David Skywalker 89645ac296 fix wrong udev devices order, fixes #9071 2019-07-08 01:27:41 +02:00
twinaphex 2c7e7ac083 (Android) Buildfix 2019-07-04 22:26:19 +02:00
twinaphex 6c2f65c585 Fix code analysis warnings 2019-07-04 21:54:51 +02:00
twinaphex 13aab06d2d (Android) Should hopefully fix hotkey binds being mappable for
gamepad
2019-07-04 15:20:10 +02:00
twinaphex 47b17e8d65 (dinput) Update 2019-07-04 14:05:20 +02:00
twinaphex ff0ea2921f (dinput) Buildfix 2019-07-04 14:02:43 +02:00
twinaphex cec67e412e Revert "(dinput/xinput) Simplifications"
This reverts commit 20e8dfcba5.
2019-07-04 05:20:19 +02:00
rsn8887 7e348f132e [SWITCH] Proper x/y scaling for pointer devices, fixes touch lightgun 2019-07-02 16:42:17 -05:00
rsn8887 1caaea4bdf [SWITCH] Allow touch mouse gestures such as tap to click
This adds touch gestures to the touchpad-style mouse
controls. Before this, there was only pointer motion
via dragging a finger somewhere on the screen. Now,
there's tap to click and more.

Supported touch gestures:

- pointer motion = single finger drag
- left mouse click = single finger short tap
- right mouse click = second finger short tap
  while first finger is still down
- left click drag and drop = dual finger drag
- right click drag and drop = triple finger drag
2019-06-26 00:35:05 -05:00
rsn8887 d0c8809df4 [SWITCH] Allow finger drag to act as mouse movement 2019-06-24 20:02:24 -05:00
twinaphex 2f16fb1345 (libnx) Buildfix 2019-06-24 05:09:21 +02:00
twinaphex c55aefef1e (dinput_joypad.c) Cleanups 2019-06-24 05:07:37 +02:00
twinaphex 584c0f5de5 (Android) Buildfix 2019-06-24 01:11:20 +02:00
twinaphex a739003ad4 Buildfix 2019-06-23 19:08:03 +02:00
twinaphex 9c73d3305d Insert input_joypad_pressed into drivers themselves 2019-06-23 18:20:48 +02:00
twinaphex 7a2fa44c4b (Cocoa) Add bitmask code 2019-06-23 17:05:01 +02:00
twinaphex 9e20871c3c (Wayland) Buildfix 2019-06-23 16:37:23 +02:00
twinaphex 439a07eecd (Android) Put extra parentheses around this 2019-06-23 15:56:34 +02:00
twinaphex 334c64d159 (Android) Simplify input code 2019-06-23 15:55:40 +02:00
twinaphex 1e863b0f4d Optimal way of grabbing all button states in a bitmasked value -
should allow us to do only one function call to the RA input
driver's input state callback
2019-06-23 06:09:45 +02:00
twinaphex eaf221125a (xinput_joypad.c) Small cleanups 2019-06-23 03:23:16 +02:00
twinaphex d4ed0358a7 (dinput.c) Cleanups 2019-06-23 03:14:21 +02:00
twinaphex 51365ed387 (input drivers) More simplifications 2019-06-23 02:34:35 +02:00
twinaphex ceecf4751a Simplify DOS keyboard code 2019-06-23 02:22:54 +02:00
twinaphex e51a98a295 Simplify android input code 2019-06-23 01:57:12 +02:00
twinaphex 6a72b19907 These files are no longer needed - they are inside retroarch.c 2019-06-22 00:27:51 +02:00
twinaphex 20e8dfcba5 (dinput/xinput) Simplifications 2019-06-21 09:00:59 +02:00
twinaphex 6bc1802914 Move run_ahead.c to retroarch.c - most of the runloop
should now be self-contained in one file. Allows us to
turn more functions static, remove more extraneous functions
that just consisted of a single line (mostly getters/setters), etc.
2019-06-20 09:30:44 +02:00
twinaphex d50a6b6bd2 Add video_driver_has_focus 2019-06-20 06:26:29 +02:00
radius d865c5e4a6 add some copyright on files I contributed considerably just in case 2019-06-20 05:45:17 +02:00
jdgleaver fc2c79b488 (3DS) Fix C-Stick y-axis inversion 2019-06-19 18:09:35 +01:00
twinaphex 68cbd5048c Convert input_conv_analog_id_to_bind into macro 2019-06-19 05:16:24 +02:00
twinaphex fd17e04bb1 Merg input_remote into retroarch.c 2019-06-18 01:03:33 +02:00
twinaphex b9c33713b4 Merge input_driver.c with retroarch.c 2019-06-17 18:59:56 +02:00
twinaphex ee3208ac39 Integrate video_driver.c into retroarch.c 2019-06-17 15:10:22 +02:00
twinaphex ce51cf6b33 Simplify BSV code 2019-06-17 02:23:06 +02:00
twinaphex db87e050d5 Merge movie.c into retroarch.c 2019-06-16 16:52:48 +02:00
Yoshi Sugawara 2dde223d23 Support returning the number of touches in the current input to support multi-touch inputs, like using a 2 finger touch to reload or secondary fire in lightgun games 2019-06-11 11:49:27 -10:00
twinaphex 6d17d11132 Rewrite '== false' to '!' for our own code 2019-06-06 13:50:39 +02:00
twinaphex 8bb74d0776 Added new hotkey AI Service and added requested
variables for OCR
2019-06-06 03:41:40 +02:00
Yoshi Sugawara 222d3297d2 use preprocessor macros to support compiling using Xcode 11/iOS 13 and older versions of Xcode 2019-06-05 06:50:02 -10:00
Yoshi Sugawara 22d84eaef2 Merge branch 'master' into ios13-controllers 2019-06-05 06:22:51 -10:00
Yoshi Sugawara 9e1fcf4031 iOS: Support L3/R3 in iOS 12.1, Options buttons in mfi/PS4/XBox One controllers in iOS 13 2019-06-05 06:21:06 -10:00
Brad Parker 1120a7e490 Bliss-Box: add additional pad types from firmware 3.0 2019-06-03 23:40:31 -04:00