citra/src/citra_qt/configuration
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
..
config.cpp Band-aid solution for 'Disk Shader Cache' (#5188) 2020-11-06 10:07:59 -08:00
config.h
configure.ui
configure_audio.cpp
configure_audio.h
configure_audio.ui
configure_camera.cpp interface.h: forward declare resolution 2020-08-20 01:30:13 -03:00
configure_camera.h clang format 2020-08-19 01:45:57 -03:00
configure_camera.ui
configure_debug.cpp Use unique_ptr on all ui objects from .ui files (#5511) 2020-10-01 09:23:01 +08:00
configure_debug.h
configure_debug.ui
configure_dialog.cpp Use unique_ptr on all ui objects from .ui files (#5511) 2020-10-01 09:23:01 +08:00
configure_dialog.h
configure_enhancements.cpp Merge pull request #5580 from oneup03/master 2020-11-16 16:53:05 -06:00
configure_enhancements.h Use unique_ptr on all ui objects from .ui files (#5511) 2020-10-01 09:23:01 +08:00
configure_enhancements.ui Merge pull request #5580 from oneup03/master 2020-11-16 16:53:05 -06:00
configure_general.cpp Use unique_ptr on all ui objects from .ui files (#5511) 2020-10-01 09:23:01 +08:00
configure_general.h
configure_general.ui citra-qt: Add an "Alternative Speed Limit" with its hotkey (#5281) 2020-06-20 13:52:14 -05:00
configure_graphics.cpp Band-aid solution for 'Disk Shader Cache' (#5188) 2020-11-06 10:07:59 -08:00
configure_graphics.h
configure_graphics.ui Band-aid solution for 'Disk Shader Cache' (#5188) 2020-11-06 10:07:59 -08:00
configure_hotkeys.cpp
configure_hotkeys.h
configure_hotkeys.ui
configure_input.cpp Automatic Controller Binding (#5100) 2021-01-01 10:01:07 +01:00
configure_input.h Automatic Controller Binding (#5100) 2021-01-01 10:01:07 +01:00
configure_input.ui Automatic Controller Binding (#5100) 2021-01-01 10:01:07 +01:00
configure_motion_touch.cpp Separate the enums from cam/cam.h 2020-08-19 01:45:57 -03:00
configure_motion_touch.h input_common: add TouchFromButtonDevice 2020-05-04 13:51:37 +03:00
configure_motion_touch.ui input_common: add TouchFromButtonDevice 2020-05-04 13:51:37 +03:00
configure_system.cpp Use unique_ptr on all ui objects from .ui files (#5511) 2020-10-01 09:23:01 +08:00
configure_system.h
configure_system.ui
configure_touch_from_button.cpp address review comments 2020-05-11 17:05:05 +03:00
configure_touch_from_button.h address review comments 2020-05-11 17:05:05 +03:00
configure_touch_from_button.ui address review comments 2020-05-11 17:05:05 +03:00
configure_touch_widget.h address review comments 2020-05-11 17:05:05 +03:00
configure_ui.cpp Use unique_ptr on all ui objects from .ui files (#5511) 2020-10-01 09:23:01 +08:00
configure_ui.h citra_qt: Backport review comments from the yuzu translation PR (#5465) 2020-08-31 21:13:24 +02:00
configure_ui.ui
configure_web.cpp
configure_web.h
configure_web.ui