Commit Graph

25 Commits

Author SHA1 Message Date
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
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
5d028cb004 Upgrade SDL for Mac
This removes the option to use system SDL, which seems like a trap.

Also simplifies the macbundle.sh script accordingly.

Buildfix

Buildfix fix

Moar buildfix
2023-04-25 11:45:20 +02:00
Unknown W. Brackets
2479d52202 Global: Reduce includes of common headers.
In many places, string, map, or Common.h were included but not needed.
2022-01-30 16:35:33 -08: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
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
Henrik Rydgård
342ed97291 Move input utilities from native to Common/Input. 2020-10-01 09:42:32 +02:00
aliaspider
54d9406713 fix mingw and msvc cmake builds. 2018-03-23 03:18:13 +01: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
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
06d594b3ff Code cleanup 2016-09-03 00:20:18 -05:00
Kelly Youngblood
7d191ccc11 Adds --PS3 flag for PS3 controllr support on SDL. 2016-09-03 00:15:25 -05:00
chrisbrasington
988e082478 fix indentation 2015-12-21 16:27:33 -07:00
chrisbrasington
ea809425b6 split SDLJoyButtonMap for MacOSX and linux. Mapping in else statement was tested on linux with a X360 and wii-u pro controller 2015-12-21 15:48:22 -07:00
chrisbrasington
cbda8cf957 adds missing button for wii-u pro gamepad, right-DPAD. NKCODEs are still mismatched in linux (360 controller and wii-u pro gamepad), but they were not changed to so that a user's controls.ini will load correctly. 2015-12-21 15:03:14 -07:00
oscdis
76e9a03f5b Joystick hot-plugging for SDL. 2015-06-23 23:13:23 +09:00
Peter Tissen
b7eeaf412e multiple SDL joystick support, initial commit untested 2014-05-31 02:35:10 +02:00
sven
7cbca3dff6 using Tabs instead of spaces 2014-04-05 16:16:21 +02:00
sven
372a7a4027 Add another Button to the Button map for Controllers ( like DS3) with 16
Buttons. Fixes Square button not being recognised by PPSSPP when using a
Dual Shock 3 Controller.
2014-04-05 15:43:48 +02: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