mirror of
https://github.com/citra-emu/citra.git
synced 2024-11-27 22:40:04 +00: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 |
||
---|---|---|
.. | ||
config.cpp | ||
config.h | ||
configure_audio.cpp | ||
configure_audio.h | ||
configure_audio.ui | ||
configure_camera.cpp | ||
configure_camera.h | ||
configure_camera.ui | ||
configure_debug.cpp | ||
configure_debug.h | ||
configure_debug.ui | ||
configure_dialog.cpp | ||
configure_dialog.h | ||
configure_enhancements.cpp | ||
configure_enhancements.h | ||
configure_enhancements.ui | ||
configure_general.cpp | ||
configure_general.h | ||
configure_general.ui | ||
configure_graphics.cpp | ||
configure_graphics.h | ||
configure_graphics.ui | ||
configure_hotkeys.cpp | ||
configure_hotkeys.h | ||
configure_hotkeys.ui | ||
configure_input.cpp | ||
configure_input.h | ||
configure_input.ui | ||
configure_motion_touch.cpp | ||
configure_motion_touch.h | ||
configure_motion_touch.ui | ||
configure_system.cpp | ||
configure_system.h | ||
configure_system.ui | ||
configure_touch_from_button.cpp | ||
configure_touch_from_button.h | ||
configure_touch_from_button.ui | ||
configure_touch_widget.h | ||
configure_ui.cpp | ||
configure_ui.h | ||
configure_ui.ui | ||
configure_web.cpp | ||
configure_web.h | ||
configure_web.ui | ||
configure.ui |