Commit Graph

39 Commits

Author SHA1 Message Date
Henrik Rydgård
04c4f7b25a Add ifdefs to try to be compatible with old SDL versions 2024-07-17 22:04:32 +02:00
Henrik Rydgård
1f8a0add22 Make some more obscure SDL buttons mappable 2024-06-19 21:06:27 +02:00
Henrik Rydgård
4be1706876 SDL: Add axis event deduplication
We now do this in the backedns instead of centrally since on some backends this is more efficient.
2023-11-16 09:20:40 +01:00
Henrik Rydgård
80a99a67d9 Control: Change internal interfaces to batch-process input axis updates
These naturally come in bunches on many platforms like Android, so lay
some groundwork to also handle them in bunches to minimize locking in
the future.

Linux buildfix
2023-08-31 11:55:53 +02:00
Henrik Rydgård
5ee04ce403 SDL: Break out event processing from main loop
Makes things a bit easier to work with.
2023-08-08 12:28:42 +02:00
Henrik Rydgård
2675d6ea43
Input event and device enums (#17514)
* Switch deviceID from int to enum InputDeviceID, globally

* Switch axisId to enum InputAxis

* Change int keycodes to InputKeyCode where it makes sense.

* SDL input buildfix

* SDL keycode buildfix

* Switch on enum warning fixes

* Qt keycode buildfix

* iOS keycode buildfix

* UWP keycode buildfix

* More iOS buildfix

* More iOS buildfix

* Update DinputDevice.cpp
2023-05-26 18:40:13 +02:00
Henrik Rydgård
38f4cc4cc9 Make reverse mapping lookup work for the simple PSP buttons. 2023-03-31 11:05:29 +02:00
Henrik Rydgård
3b39e9e068 Turn the VFS into a class, to be able to reuse it for other purposes. 2023-03-06 16:42:47 +01:00
Unknown W. Brackets
536c050943 Core: Track names of connected pad devices.
Rather than just that it's a pad.  This tries to get the identifier if
possible.
2022-07-04 19:14:04 -07:00
Yifan Gu
633a6f612b Refactor and unify analog input settings 2021-07-05 12:38:46 +02:00
Unknown W. Brackets
af3d699d5e SDL: Ignore commas in joystick names.
Otherwise default mapping will break and parse wrong.
2021-05-21 09:13:15 -07:00
Henrik Rydgård
44a93f98ed SDL: Apply patch from issue #13516, fixing issue with Wacom tablets with readonly flags set. 2020-10-06 16:58:32 +02:00
Henrik Rydgård
4f43cff5ca
Move fileutil, net, image loaders, ui to Common. (#13506)
* Move and rename file_util/fd_util to Common/File/FileUtil and DirListing

Let's also move net while we're at it.

Move the ZIM/PNG loaders over to Common.

Move the UI framework into Common

iOS buildfix

* Buildfix

* Buildfixes

* Apple buildfix

* This typo again..

* UWP buildfix

* Fix build of PPSSPPQt, such as it is (it's not in good condition...)

* Guess what? Another buildfix.
2020-10-04 20:48:47 +02:00
Henrik Rydgård
f01ba6dc84 Move NativeApp.h to Common/System, split into NativeApp.h and System.h
Buildfix
2020-10-04 11:42:16 +02:00
Henrik Rydgård
9e41fafd0d Move math and some file and data conversion files out from native to Common.
Buildfixing

Move some file util files

Buildfix

Move KeyMap.cpp/h to Core where they belong better.

libretro buildfix attempt

Move ini_file

More buildfixes
2020-10-04 09:12:46 +02:00
Henrik Rydgård
ff8148dd92 Move native/util, native/data and native/i18 to Common/Data.
Also move colorutil.cpp/h

linking build fix experiment

Delete a bunch of unused CMakeLists.txt files

CMakeLists.txt linking fix

Don't include NativeApp.h from any headers.

Android.mk buildfix

Half of the UWP fix

Buildfix

Minor project file cleanup

Buildfixes

Guess what? More buildfixes!
2020-10-04 07:28:29 +02:00
Neil Munday
ac0052c6af Added default control pad mapping for control pads not found in SDL's game controller database file. 2017-10-03 22:08:29 +01:00
Henrik Rydgård
4491c7e2ca Quick hack to enable analog stick sensitivity on non-windows platforms.
See #8028
2017-05-18 15:15:10 +02:00
Henrik Rydgård
1b699363ca Load SDL's gamecontrollerdb from assets directory, not relative to exe. Fixes #9460.
Also remove support for that env variable.
2017-03-21 15:54:39 +01:00
ASL97
14187f9311 Allow background joystick input on SDL 2017-02-23 05:18:21 +08:00
zhyk
0629054783 Do not create thread to handle SDL joystick events in Qt build.
Caused crashes on MacOS Sierra (10.12).
2017-02-01 14:37:36 +08:00
Henrik Rydgård
052660bc8c Merge pull request #9260 from neilmunday/master
Added ability for the user to override the location of the SDL game controller db file
2017-01-31 08:52:55 +01:00
Neil Munday
b058b987ad Added ability for the user to override the location of the SDL game controller db file. 2017-01-30 20:26:24 +00:00
Bigpet
d6b8123662 add left and right thumbstick button handling in SDL gamepad. 2016-11-20 18:50:06 +01:00
Neil Munday
182b9e0fda Various improvements including finding the assets directory properly. 2016-09-20 21:50:45 +01:00
Neil Munday
e4a0a3cea3 Updated SDL2 game controller mods following feedback from PPSSPP authors. 2016-09-20 00:28:28 +01:00
Neil Munday
db2cc49e0d Modified SDL2 code to make full use of SDL2's Game Controller API. 2016-09-18 23:23:36 +01:00
Neil Munday
67425d7d47 Initial attempt at adding SDL's game controller database to PPSSPP. 2016-09-18 00:33:28 +01:00
Kelly Youngblood
5adaa12260 Adds auto-detection for PS3 cocntroller. 2016-09-03 21:14:44 -05:00
Kelly Youngblood
7d191ccc11 Adds --PS3 flag for PS3 controllr support on SDL. 2016-09-03 00:15:25 -05:00
oscdis
8f11555226 Insert a space between parens and curlies. 2015-06-28 16:44:48 +09:00
oscdis
76e9a03f5b Joystick hot-plugging for SDL. 2015-06-23 23:13:23 +09:00
Henrik Rydgård
e6af3cf2f4 Try workaround for SDL joystick dpad problems as mentioned in #7428 2015-02-05 09:49:31 +01:00
Daniel Nagel
afefac86ad Update to SDL2 2014-09-01 16:35:19 +02:00
Sacha
73aa17a2de Misc fixes. CMake: Don't compile neon on armv6 (rpi). Qt: Correct path for lrelease. SDL: Fix a warning. 2014-06-18 03:28:33 +10:00
Peter Tissen
b7eeaf412e multiple SDL joystick support, initial commit untested 2014-05-31 02:35:10 +02:00
Tomoaki Hayasaka
69ed995437 fix "unknown SDL joystick axes mapped to 'pad.X Axis-'" bug. 2014-03-29 01:16:44 +09:00
Bigpet
0d50f78705 initialize values correctly for older compilers 2013-11-24 06:32:19 +01:00
Peter Tissen
746a88c23d enable SDL Joystick support to Qt
Cmake file update add new SDL joystick files
2013-11-22 02:37:52 +01:00