DDraceNetwork Docs
touch_controls.cpp File Reference
Include dependency graph for touch_controls.cpp:

Variables

static constexpr const char *const ACTION_NAMES [] = {Localizable("Aim"), Localizable("Fire"), Localizable("Hook")}
 
static constexpr const char *const ACTION_SWAP_NAMES [] = { "", Localizable("Active: Fire"), Localizable("Active: Hook")}
 
static constexpr const char *const ACTION_COMMANDS [] = { "", "+fire", "+hook"}
 
static constexpr std::chrono::milliseconds LONG_TOUCH_DURATION = 500ms
 
static constexpr std::chrono::milliseconds BIND_REPEAT_INITIAL_DELAY = 250ms
 
static constexpr std::chrono::nanoseconds BIND_REPEAT_RATE = std::chrono::nanoseconds(1s) / 15
 
static constexpr const char *const CONFIGURATION_FILENAME = "touch_controls.json"
 
static constexpr int BUTTON_SIZE_SCALE = 1000000
 
static constexpr int BUTTON_SIZE_MINIMUM = 50000
 
static constexpr int BUTTON_SIZE_MAXIMUM = 500000
 

Variable Documentation

◆ ACTION_COMMANDS

constexpr const char* const ACTION_COMMANDS[] = { "", "+fire", "+hook"}
staticconstexpr

◆ ACTION_NAMES

constexpr const char* const ACTION_NAMES[] = {Localizable("Aim"), Localizable("Fire"), Localizable("Hook")}
staticconstexpr

◆ ACTION_SWAP_NAMES

constexpr const char* const ACTION_SWAP_NAMES[] = { "", Localizable("Active: Fire"), Localizable("Active: Hook")}
staticconstexpr

◆ BIND_REPEAT_INITIAL_DELAY

constexpr std::chrono::milliseconds BIND_REPEAT_INITIAL_DELAY = 250ms
staticconstexpr

◆ BIND_REPEAT_RATE

constexpr std::chrono::nanoseconds BIND_REPEAT_RATE = std::chrono::nanoseconds(1s) / 15
staticconstexpr

◆ BUTTON_SIZE_MAXIMUM

constexpr int BUTTON_SIZE_MAXIMUM = 500000
staticconstexpr

◆ BUTTON_SIZE_MINIMUM

constexpr int BUTTON_SIZE_MINIMUM = 50000
staticconstexpr

◆ BUTTON_SIZE_SCALE

constexpr int BUTTON_SIZE_SCALE = 1000000
staticconstexpr

◆ CONFIGURATION_FILENAME

constexpr const char* const CONFIGURATION_FILENAME = "touch_controls.json"
staticconstexpr

◆ LONG_TOUCH_DURATION

constexpr std::chrono::milliseconds LONG_TOUCH_DURATION = 500ms
staticconstexpr