#include <keycode.h>
◆ value_alternative_t
◆ value_type
◆ InputSourceType
Type of the input device.
| Enumerator |
|---|
| INVALID | |
| KEYBOARD | |
| MOUSE | |
| TOUCHSCREEN | |
| GAMEPAD | |
◆ InputType
The type of the input value.
When constructing the KeyPress object from an Irrilcht event, the direction of the gamepad axis is determined by the value along the axis. 0 is mapped to the positive direction.
| Enumerator |
|---|
| KEYBOARD | Keyboard input (scancodes).
|
| MOUSE_BUTTON | Mouse button input.
|
| GAME_ACTION | GameKeyType input passed by touchscreen buttons.
|
| GAMEPAD_BUTTON | Gamepad button.
|
| GAMEPAD_AXIS_PLUS | Gamepad axis in the positive direction.
|
| GAMEPAD_AXIS_MINUS | Gamepad axis in the negative direction.
|
◆ KeyPress() [1/7]
◆ KeyPress() [2/7]
| KeyPress::KeyPress |
( |
const std::string & | name | ) |
|
◆ KeyPress() [3/7]
| KeyPress::KeyPress |
( |
const SEvent::SKeyInput & | in | ) |
|
◆ KeyPress() [4/7]
| KeyPress::KeyPress |
( |
const SEvent::SMouseInput & | in | ) |
|
◆ KeyPress() [5/7]
| KeyPress::KeyPress |
( |
const SEvent::SGamepadButtonEvent & | in | ) |
|
◆ KeyPress() [6/7]
| KeyPress::KeyPress |
( |
const SEvent::SGamepadAxisEvent & | in | ) |
|
◆ KeyPress() [7/7]
◆ emplace()
◆ get()
◆ getCast()
| T KeyPress::getCast |
( |
| ) |
const |
|
inlineprivate |
◆ getIf()
◆ getOppositeAxisDirection()
| KeyPress KeyPress::getOppositeAxisDirection |
( |
| ) |
const |
◆ getScancode()
| u32 KeyPress::getScancode |
( |
| ) |
const |
|
inline |
◆ getSourceType()
Get the source type of input.
References GAME_ACTION, GAMEPAD, GAMEPAD_AXIS_MINUS, GAMEPAD_AXIS_PLUS, GAMEPAD_BUTTON, getType(), INVALID, KEYBOARD, MOUSE, MOUSE_BUTTON, and TOUCHSCREEN.
◆ getSpecialKey()
| KeyPress KeyPress::getSpecialKey |
( |
const std::string & | name | ) |
|
|
static |
◆ getType()
◆ loadFromKey()
| void KeyPress::loadFromKey |
( |
EKEY_CODE | keycode, |
|
|
wchar_t | keychar ) |
|
private |
◆ loadFromScancode()
| bool KeyPress::loadFromScancode |
( |
const std::string & | name | ) |
|
|
private |
◆ loadUnsignedFromPrefix()
| bool KeyPress::loadUnsignedFromPrefix |
( |
const std::string & | name, |
|
|
const std::string & | prefix ) |
|
private |
◆ name()
| std::string KeyPress::name |
( |
| ) |
const |
References fmtgettext(), GAMEPAD_AXIS_MINUS, GAMEPAD_AXIS_PLUS, GAMEPAD_BUTTON, get(), RenderingEngine::get_raw_device(), getScancode(), getType(), KEYBOARD, table_key::LangName, lookup_scancode(), MOUSE_BUTTON, name(), and strgettext().
Referenced by KeyPress(), KeyPress(), getSpecialKey(), ModApiMenuCommon::l_get_key_description(), loadFromScancode(), loadUnsignedFromPrefix(), name(), and GUIButtonKey::setKey().
◆ operator bool()
| KeyPress::operator bool |
( |
| ) |
const |
◆ operator!=()
| bool KeyPress::operator!= |
( |
KeyPress | o | ) |
const |
|
inline |
◆ operator<()
| bool KeyPress::operator< |
( |
KeyPress | o | ) |
const |
|
inline |
◆ operator==()
| bool KeyPress::operator== |
( |
KeyPress | o | ) |
const |
|
inline |
◆ sym()
| std::string KeyPress::sym |
( |
| ) |
const |
◆ value
The documentation for this class was generated from the following files: