![]() |
DDraceNetwork Documentation
|
#include "touch_controls.h"#include <base/color.h>#include <base/log.h>#include <base/system.h>#include <engine/client.h>#include <engine/console.h>#include <engine/external/json-parser/json.h>#include <engine/shared/config.h>#include <engine/shared/jsonwriter.h>#include <engine/shared/localization.h>#include <game/client/components/camera.h>#include <game/client/components/chat.h>#include <game/client/components/console.h>#include <game/client/components/controls.h>#include <game/client/components/emoticon.h>#include <game/client/components/menus.h>#include <game/client/components/spectator.h>#include <game/client/components/voting.h>#include <game/client/gameclient.h>#include <game/localization.h>#include <algorithm>#include <cstdlib>#include <functional>#include <iterator>#include <queue>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" |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |