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.
 
 
 
 
 
 
Anders Jenbo dbc91ae036 Correct mouse interactions for game controller 6 years ago
..
devices Make belt usage event based, also use heal scroll from belt 6 years ago
README.md Game controller support 6 years ago
controller.cpp Make controls more responsive 6 years ago
controller.h Game controller support 6 years ago
controller_buttons.h Game controller support 6 years ago
controller_motion.cpp Controller: Support SDL1 joystick axes 6 years ago
controller_motion.h Game controller support 6 years ago
game_controls.cpp Swap map and quest log 6 years ago
game_controls.h Controls: Map top button to use inv item 6 years ago
menu_controls.cpp Make controls more responsive 6 years ago
menu_controls.h Game controller support 6 years ago
plrctrls.cpp Correct mouse interactions for game controller 6 years ago
plrctrls.h Make controls more responsive 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:

  1. SDL2 controller API.

  2. 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).

  3. 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).