842 Commits

Author SHA1 Message Date
twinaphex
11520f9704 (X11) Buildfix 2020-06-11 20:23:44 +02:00
twinaphex
dee0c5dbca CTR buildfix + cleanups 2020-06-11 19:33:27 +02:00
twinaphex
f12ac35438 Cleanups 2020-06-11 19:03:50 +02:00
twinaphex
42984968f2 (X11) Further optimizations to x_is_pressed 2020-06-11 19:00:08 +02:00
twinaphex
f96e148f74 Change to 1 instead 2020-06-11 18:43:53 +02:00
twinaphex
e2e5366925 Cleanups 2020-06-11 18:43:30 +02:00
Twinaphex
dc967f41ec (Cocoa) Create cocoa_is_pressed 2020-06-11 18:40:14 +02:00
twinaphex
9c1d40c364 (Android) Buildfix 2020-06-11 17:37:23 +02:00
twinaphex
3eaf7d5e66 Further cleanups and corrections 2020-06-11 17:18:28 +02:00
twinaphex
6ddbf911e3 (SDL input) Build fix - and further cleanups in other
drivers
2020-06-11 17:12:08 +02:00
twinaphex
cd01e0a048 Standardize input lightgun code 2020-06-11 16:58:49 +02:00
twinaphex
f9c771b4a8 Standardize lightgun_aiming_state function 2020-06-11 16:50:36 +02:00
twinaphex
cf3cdbbcc9 Cleanups 2020-06-11 16:49:27 +02:00
twinaphex
39279292ef (dinput) Cut down on code duplication 2020-06-11 16:42:33 +02:00
twinaphex
4fb59f5319 (winraw_input) More fixes 2020-06-11 16:37:50 +02:00
twinaphex
479a3ab9a3 (Dinput) Optimizations - create dinput_is_pressed 2020-06-11 08:54:17 +02:00
twinaphex
a14d54b3fd (winraw_input) Further optimizations 2020-06-11 08:34:30 +02:00
twinaphex
5d58acd2c0 (Android) Input driver optimizations - fill in device_model one time
inside the init function - mistake previously was putting it erroneously
inside an inner loop
2020-06-11 08:08:21 +02:00
twinaphex
108bbf0bf6 Turn this into static function 2020-06-11 07:12:54 +02:00
twinaphex
d893e880ec Revert "(Android) android_input.c - optimize - hose code that always remains"
This reverts commit df4428bd7ac9130d312f954fbffa58eecf5e928a.
2020-06-11 07:10:15 +02:00
twinaphex
df4428bd7a (Android) android_input.c - optimize - hose code that always remains
the same outside of loops
2020-06-11 06:46:40 +02:00
twinaphex
02132985af Cleanups 2020-06-11 06:34:59 +02:00
twinaphex
9aafd3c723 (winraw) Cleanups - get rid of setting pointer grabbing everywhere -
clean up mouse state grabbing everywhere - would be costly in loops
2020-06-11 06:29:36 +02:00
twinaphex
703cc7198d (input drivers) cleanup log spam 2020-06-11 05:37:40 +02:00
twinaphex
d924c656b7 (winraw_input) cleanups 2020-06-11 05:15:36 +02:00
twinaphex
fa6ca2e39c Revert "Create input_joypad_analog_button"
This reverts commit 9e7ca7cbbe03eecf3b6cf916790187f54742e0a1.
2020-06-10 05:50:51 +02:00
twinaphex
9e7ca7cbbe Create input_joypad_analog_button 2020-06-10 04:17:08 +02:00
twinaphex
a7a03984f1 (input drivers) Cleanups 2020-06-10 04:00:40 +02:00
twinaphex
cfbaa0c89d (X11) Cut down on video_driver_has_focus calls 2020-06-08 06:16:01 +02:00
twinaphex
494c0f8fe4 (PSL1GHT) Cleanups 2020-05-12 17:06:58 +02:00
Vladimir Serbinenko
cc73de48d6 Fix dos compilation 2020-05-12 03:09:38 +02:00
Alex Kornitzer
cdfb8348b0 cocoa: use absolute positioning over relative
Now that we clip the window to locate the cursor correctly on re-entry
we need to do our cursor calculations using absolute coordinates
2020-05-11 00:58:06 +01:00
Alex Kornitzer
edfafd9fad cocoa: fix mouse movement
The input driver was using absolute coordinate arithmetic while making
use of delta changes for each coordinate, as a result the absolute
change netted to zero. This fixes that and tries to mitigate cursor
event sync issues (sync issues will require more work).
2020-05-10 22:44:44 +01:00
MrHuu
92dc0dc6d0
(3DS) Allow button presses up to INPUT_MAX_USERS
This enables the 3DS to bind and use buttons and axis for users up to the maximum set by 'Max Users' in the input settings menu.
2020-04-21 20:52:49 +02:00
Vladimir Serbinenko
5b668ae421 Implement psl1ght keyboard 2020-04-17 00:56:23 +02:00
Vladimir Serbinenko
2ff9bfb24d qnx: support analog sticks 2020-04-01 16:49:44 +02:00
Vladimir Serbinenko
ab34a0a34f Handle errors in qnx_input
I had errors with null driver. While this setup is not really usable,
we shouldn't crash on it
2020-04-01 16:49:44 +02:00
Vladimir Serbinenko
5a2e4237c4 Fix qnx compilation 2020-04-01 16:49:44 +02:00
Vladimir Serbinenko
2fb7ba22e5 PSL1GHT port
Working:

* packaging
* running cores
* switching cores
* gamepad including axis
* rgui
* audio
* video

Not working:

* OSD
* menus other than rgui
* shaders
* Graphical acceleration
* Proper signing
* ODE build
* rumble
* keyboard
* mouse

Not tested:

* A lot
2020-03-30 05:39:22 +02:00
twinaphex
7f8c13ae09 (GDI/Win32) Refactor code - handle doubleclick press on title bar
inside DInput driver
2020-03-13 02:20:31 +01:00
twinaphex
5bb85ee5d5 (GX) Buildfix 2020-02-27 23:32:18 +01:00
twinaphex
26b3ccf2e5 Don't pass joypad_info by value 2020-02-27 07:33:14 +01:00
twinaphex
0ec3a8a449 (Input) Settings cleanups 2020-02-23 06:05:23 +01:00
twinaphex
880391d0c5 (libnx) Try to silence warnings 2020-02-10 12:36:11 +01:00
twinaphex
ca83be1db4 Cleanups 2020-02-01 04:19:22 +01:00
twinaphex
a034909ae9 Cleanups 2020-01-30 16:35:59 +01:00
Vladimir Serbinenko
193d40bae4 Cleanup AMotionEvent_getAxisValue check
I though it was a weak loading but in fact it's explicit so
loading with some define magic, so we need to check for p_AMotionEvent_getAxisValue
to be clean. Binary code is actually the same

Tested by reverting path fix
2020-01-28 17:32:38 +01:00
Vladimir Serbinenko
6d8cbd2c4b Fix so file for x64 android
In particular it affects Pixelbook which implements x64 Android
2020-01-28 17:23:46 +01:00
Vladimir Serbinenko
14c24e1fab Remove unnecessarry check for AMotionEvent_getX
Unlike getAxis getX is always present and doesn't need to be checked
2020-01-28 17:04:32 +01:00
Vladimir Serbinenko
e290e9193d Fix crash on Pixelbook
AMotionEvent_getAxisValue is a weak symbol and we need
to check for its presence before calling it.
2020-01-28 15:03:16 +01:00