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 citra, citra_qt: Add video dumping config read/write 2020-02-27 16:55:11 +08:00
configure.ui address more comments 2019-11-09 12:56:27 -07:00
configure_audio.cpp service/mic: actually use the specified device 2019-11-11 17:15:10 -05:00
configure_audio.h yuzu/configuration: Make function naming consistent 2019-07-06 15:01:41 +02:00
configure_audio.ui Rest of the owl 2019-03-04 23:07:05 -07:00
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 camera: Add camera flip config 2018-06-07 14:57:03 +08:00
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 yuzu/configuration: Make function naming consistent 2019-07-06 15:01:41 +02:00
configure_debug.ui GDB Modernization: 2018-08-16 10:40:52 +01:00
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 yuzu/configuration: Make function naming consistent 2019-07-06 15:01:41 +02:00
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 yuzu/configuration: Make function naming consistent 2019-07-06 15:01:41 +02:00
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 reorder graphics tab, move speed to general 2019-11-09 12:56:27 -07:00
configure_graphics.ui Band-aid solution for 'Disk Shader Cache' (#5188) 2020-11-06 10:07:59 -08:00
configure_hotkeys.cpp clang-format 2019-11-28 20:47:33 -07:00
configure_hotkeys.h yuzu/configuration: Make function naming consistent 2019-07-06 15:01:41 +02:00
configure_hotkeys.ui citra-qt: Add /default parsing for hotkeys. Also minor code cleanups. 2019-01-25 20:42:49 +05:30
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 yuzu/configuration: Make function naming consistent 2019-07-06 15:01:41 +02:00
configure_system.ui citra_qt/system: Add N3DS mode checkbox and enable it by default 2020-03-28 16:49:35 +01:00
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 Change GameListText order to improve configuration compatibility 2019-09-09 23:36:21 -03:00
configure_web.cpp clang-format 2019-11-28 20:47:33 -07:00
configure_web.h yuzu/configuration: Make function naming consistent 2019-07-06 15:01:41 +02:00
configure_web.ui citra_qt: configure_web: Use Base64 encoded token for simplifying user experience. 2019-11-09 13:48:26 -05:00