mirror of
https://github.com/Lime3DS/Lime3DS
synced 2024-12-28 18:12:44 -06:00
ce16653cc8
* 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 |
||
---|---|---|
.. | ||
applets | ||
camera | ||
configuration | ||
debugger | ||
dumping | ||
multiplayer | ||
updater | ||
util | ||
aboutdialog.cpp | ||
aboutdialog.h | ||
aboutdialog.ui | ||
bootmanager.cpp | ||
bootmanager.h | ||
cheats.cpp | ||
cheats.h | ||
cheats.ui | ||
citra-qt.rc | ||
CMakeLists.txt | ||
compatdb.cpp | ||
compatdb.h | ||
compatdb.ui | ||
compatibility_list.cpp | ||
compatibility_list.h | ||
discord.h | ||
discord_impl.cpp | ||
discord_impl.h | ||
game_list.cpp | ||
game_list.h | ||
game_list_p.h | ||
game_list_worker.cpp | ||
game_list_worker.h | ||
hotkeys.cpp | ||
hotkeys.h | ||
Info.plist | ||
loading_screen.cpp | ||
loading_screen.h | ||
loading_screen.ui | ||
main.cpp | ||
main.h | ||
main.ui | ||
qt_image_interface.cpp | ||
qt_image_interface.h | ||
uisettings.cpp | ||
uisettings.h |