You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
6 years ago | |
|---|---|---|
| .. | ||
| devices | 6 years ago | |
| README.md | 6 years ago | |
| controller.cpp | 6 years ago | |
| controller.h | 6 years ago | |
| controller_buttons.h | 6 years ago | |
| controller_motion.cpp | 6 years ago | |
| controller_motion.h | 6 years ago | |
| game_controls.cpp | 6 years ago | |
| game_controls.h | 6 years ago | |
| menu_controls.cpp | 6 years ago | |
| menu_controls.h | 6 years ago | |
| plrctrls.cpp | 6 years ago | |
| plrctrls.h | 6 years ago | |
README.md
Controls handling
DevilutionX supports mouse & keyboard and gamepad input.
This directory currently mostly handles gamepad input.
Low-level gamepad handling is abstracted and 3 implementations are provided:
-
SDL2 controller API.
-
SDL 1&2 joystick API.
This can be used in SDL1 joystick platforms and for mapping additional buttons not defined by SDL2 controller mappings (e.g. additional Nintendo Switch arrows).
-
Keyboard keys acting as controller buttons.
This can be used for testing, or on devices where this is the only or the easiest API to use (e.g. RetroFW).