citra/src/citra_qt
Vitor K ce16653cc8
Automatic Controller Binding (#5100)
* Implement the basics of controller auto mapping. From testing doesn't currenlty work.
Opening the controller requires the device index, but it is only known and guaranteed
at boot time or when a controller is connected.

* Use the SDL_INIT_GAMECONTROLLER flag to initialize the controller
subsystem. It automatically initializes the joystick subsystem too,
so SDL_INIT_JOYSTICK is not needed.

* Implement the SDLGameController class to handle open game controllers.
Based on the SDLJoystick implementation.

* Address review comments

* Changes SDLJoystick and SDLGameController to use a custom default
constructible destructor, to improve readability. The only deleters
used previously were SDL_JoystickClose and SDL_GameControllerClose,
respectively, plus null lambdas. Given that both SDL functions
accept null pointers with just an early return, this should be
functionally the same.
with just an early return

* warn the user when a controller mapping is not found

* Get axis direction and threshold from SDL_ExtendedGameControllerBind

* Reject analog bind if it's not axis, for the couple of examples present in SDL2.0.10's db.
Also add SDL_CONTROLLER_BINDTYPE_NONE for the button bind switch, with a better log message.

* sdl_impl.cpp: Log the error returned by SDL_GetError upon failure to open joystick

* sdl: only use extended binding on SDL2.0.6 and up

* sdl_impl.cpp: minor changes
2021-01-01 10:01:07 +01:00
..
applets Use attribute instead of comment 2020-05-31 10:47:46 +08:00
camera interface.h: forward declare resolution 2020-08-20 01:30:13 -03:00
configuration Automatic Controller Binding (#5100) 2021-01-01 10:01:07 +01:00
debugger kernel/thread: Change owner_process to std::weak_ptr (#5325) 2020-11-15 12:59:45 +01:00
dumping citra_qt: Split options into 'Specific' and 'Generic' 2020-02-28 18:26:20 +08:00
multiplayer Use unique_ptr on all ui objects from .ui files (#5511) 2020-10-01 09:23:01 +08:00
updater
util Port yuzu commit: "yuzu/CMakeLists: Disable implicit QString co… (#5074) 2020-02-11 13:12:09 +01:00
aboutdialog.cpp Use unique_ptr on all ui objects from .ui files (#5511) 2020-10-01 09:23:01 +08:00
aboutdialog.h
aboutdialog.ui
bootmanager.cpp Fixes to "hide mouse on inactivity" (#5476) 2020-12-05 22:12:17 +01:00
bootmanager.h Fixes to "hide mouse on inactivity" (#5476) 2020-12-05 22:12:17 +01:00
cheats.cpp citra_qt/cheats: Make window resizable and remove help hint 2020-12-28 17:01:30 +01:00
cheats.h
cheats.ui
citra-qt.rc Fix: fatal error CVT1100 when compiling manifest file (#5322) 2020-06-20 13:50:33 -05:00
CMakeLists.txt citra_qt: Backport review comments from the yuzu translation PR (#5465) 2020-08-31 21:13:24 +02:00
compatdb.cpp
compatdb.h
compatdb.ui
compatibility_list.cpp
compatibility_list.h
discord.h
discord_impl.cpp discord_impl: Update the client ID (#5449) 2020-07-08 23:45:54 +02:00
discord_impl.h
game_list.cpp Port yuzu-emu/yuzu#4700: "game_list: Eliminate redundant argument copies" (#5571) 2020-12-07 16:05:13 +01:00
game_list.h Port yuzu-emu/yuzu#4700: "game_list: Eliminate redundant argument copies" (#5571) 2020-12-07 16:05:13 +01:00
game_list_p.h game_list_p: Resolve deprecated usage of QVariant operator< 2020-12-19 18:48:38 +01:00
game_list_worker.cpp yuzu: Resolve -Wextra-semi warnings 2020-08-28 16:43:17 +02:00
game_list_worker.h
hotkeys.cpp
hotkeys.h
Info.plist
loading_screen.cpp Port yuzu commit: "yuzu/CMakeLists: Disable implicit QString co… (#5074) 2020-02-11 13:12:09 +01:00
loading_screen.h QT Frontend: Add disk shader loading progress bar 2020-01-22 17:18:00 -07:00
loading_screen.ui Loading Screen: Vertically Center everything 2020-01-22 17:26:27 -07:00
main.cpp Port yuzu-emu/yuzu#4700: "game_list: Eliminate redundant argument copies" (#5571) 2020-12-07 16:05:13 +01:00
main.h Fixes to "hide mouse on inactivity" (#5476) 2020-12-05 22:12:17 +01:00
main.ui core, citra_qt: Implement a save states file format and slot UI 2020-02-18 13:19:52 +08:00
qt_image_interface.cpp
qt_image_interface.h
uisettings.cpp GUI: fix minor issues with dark themes 2020-01-28 14:24:52 +01:00
uisettings.h yuzu: Resolve -Wextra-semi warnings 2020-08-28 16:43:17 +02:00