![]() |
LuciadCPillar 2025.0.02
|
Represents a key in the controller API. More...
#include <luciad/input/KeyCode.h>
Public Member Functions | |
constexpr | KeyCode (size_t index) |
Creates a new KeyCode with the given index. More... | |
constexpr bool | operator!= (const KeyCode &rhs) const |
constexpr bool | operator== (const KeyCode &rhs) const |
Static Public Member Functions | |
static const KeyCode & | a () |
A key code representing the 'A' key. More... | |
static const KeyCode & | asterisk () |
A key code representing the '*' key. More... | |
static const KeyCode & | b () |
A key code representing the 'B' key. More... | |
static const KeyCode & | backspace () |
A key code representing the backspace key. More... | |
static const KeyCode & | c () |
A key code representing the 'C' key. More... | |
static const KeyCode & | d () |
A key code representing the 'D' key. More... | |
static const KeyCode & | del () |
A key code representing the delete key. More... | |
static const KeyCode & | down () |
A key code representing the down key. More... | |
static const KeyCode & | e () |
A key code representing the 'E' key. More... | |
static const KeyCode & | eight () |
A key code representing the '8' key. More... | |
static const KeyCode & | end () |
A key code representing the end key. More... | |
static const KeyCode & | enter () |
A key code representing the enter key. More... | |
static const KeyCode & | escape () |
A key code representing the escape key. More... | |
static const KeyCode & | f () |
A key code representing the 'F' key. More... | |
static const KeyCode & | f1 () |
A key code representing the F1 key. More... | |
static const KeyCode & | f10 () |
A key code representing the F10 key. More... | |
static const KeyCode & | f11 () |
A key code representing the F11 key. More... | |
static const KeyCode & | f12 () |
A key code representing the F12 key. More... | |
static const KeyCode & | f2 () |
A key code representing the F2 key. More... | |
static const KeyCode & | f3 () |
A key code representing the F3 key. More... | |
static const KeyCode & | f4 () |
A key code representing the F4 key. More... | |
static const KeyCode & | f5 () |
A key code representing the F5 key. More... | |
static const KeyCode & | f6 () |
A key code representing the F6 key. More... | |
static const KeyCode & | f7 () |
A key code representing the F7 key. More... | |
static const KeyCode & | f8 () |
A key code representing the F8 key. More... | |
static const KeyCode & | f9 () |
A key code representing the F9 key. More... | |
static const KeyCode & | five () |
A key code representing the '5' key. More... | |
static const KeyCode & | four () |
A key code representing the '4' key. More... | |
static const KeyCode & | g () |
A key code representing the 'G' key. More... | |
static const KeyCode & | h () |
A key code representing the 'H' key. More... | |
static const KeyCode & | home () |
A key code representing the home key. More... | |
static const KeyCode & | i () |
A key code representing the 'I' key. More... | |
static const KeyCode & | insert () |
A key code representing the insert key. More... | |
static const KeyCode & | j () |
A key code representing the 'J' key. More... | |
static const KeyCode & | k () |
A key code representing the 'K' key. More... | |
static const KeyCode & | l () |
A key code representing the 'L' key. More... | |
static const KeyCode & | left () |
A key code representing the left key. More... | |
static const KeyCode & | m () |
A key code representing the 'M' key. More... | |
static const KeyCode & | minus () |
A key code representing the '-' key. More... | |
static const KeyCode & | n () |
A key code representing the 'N' key. More... | |
static const KeyCode & | nine () |
A key code representing the '9' key. More... | |
static const KeyCode & | o () |
A key code representing the 'O' key. More... | |
static const KeyCode & | one () |
A key code representing the '1' key. More... | |
static const KeyCode & | p () |
A key code representing the 'P' key. More... | |
static const KeyCode & | pageDown () |
A key code representing the page down key. More... | |
static const KeyCode & | pageUp () |
A key code representing the pacge up key. More... | |
static const KeyCode & | plus () |
A key code representing the '+' key. More... | |
static const KeyCode & | q () |
A key code representing the 'Q' key. More... | |
static const KeyCode & | r () |
A key code representing the 'R' key. More... | |
static const KeyCode & | right () |
A key code representing the right key. More... | |
static const KeyCode & | s () |
A key code representing the 'S' key. More... | |
static const KeyCode & | seven () |
A key code representing the '7' key. More... | |
static const KeyCode & | six () |
A key code representing the '6' key. More... | |
static const KeyCode & | slash () |
A key code representing the '/' key. More... | |
static const KeyCode & | space () |
A key code representing the space key. More... | |
static const KeyCode & | t () |
A key code representing the 'T' key. More... | |
static const KeyCode & | tab () |
A key code representing the tab key. More... | |
static const KeyCode & | three () |
A key code representing the '3' key. More... | |
static const KeyCode & | two () |
A key code representing the '2' key. More... | |
static const KeyCode & | u () |
A key code representing the 'U' key. More... | |
static const KeyCode & | unknown () |
A key code representing an unknown key. More... | |
static const KeyCode & | up () |
A key code representing the up key. More... | |
static const KeyCode & | v () |
A key code representing the 'V' key. More... | |
static const KeyCode & | w () |
A key code representing the 'W' key. More... | |
static const KeyCode & | x () |
A key code representing the 'X' key. More... | |
static const KeyCode & | y () |
A key code representing the 'Y' key. More... | |
static const KeyCode & | z () |
A key code representing the 'Z' key. More... | |
static const KeyCode & | zero () |
A key code representing the '0' key. More... | |
Public Attributes | |
size_t | index |
The index of the key code. More... | |
Represents a key in the controller API.
|
inlineexplicitconstexpr |
Creates a new KeyCode with the given index.
The key button index maps on to keys as follows:
If needed other indexes can be used if out of those values. For example if you want to handle unicode characters. Please use index values greater than 1024 for custom key codes.
index | the mouse button index. |
|
static |
A key code representing the 'A' key.
|
static |
A key code representing the '*' key.
|
static |
A key code representing the 'B' key.
|
static |
A key code representing the backspace key.
|
static |
A key code representing the 'C' key.
|
static |
A key code representing the 'D' key.
|
static |
A key code representing the delete key.
|
static |
A key code representing the down key.
|
static |
A key code representing the 'E' key.
|
static |
A key code representing the '8' key.
|
static |
A key code representing the end key.
|
static |
A key code representing the enter key.
|
static |
A key code representing the escape key.
|
static |
A key code representing the 'F' key.
|
static |
A key code representing the F1 key.
|
static |
A key code representing the F10 key.
|
static |
A key code representing the F11 key.
|
static |
A key code representing the F12 key.
|
static |
A key code representing the F2 key.
|
static |
A key code representing the F3 key.
|
static |
A key code representing the F4 key.
|
static |
A key code representing the F5 key.
|
static |
A key code representing the F6 key.
|
static |
A key code representing the F7 key.
|
static |
A key code representing the F8 key.
|
static |
A key code representing the F9 key.
|
static |
A key code representing the '5' key.
|
static |
A key code representing the '4' key.
|
static |
A key code representing the 'G' key.
|
static |
A key code representing the 'H' key.
|
static |
A key code representing the home key.
|
static |
A key code representing the 'I' key.
|
static |
A key code representing the insert key.
|
static |
A key code representing the 'J' key.
|
static |
A key code representing the 'K' key.
|
static |
A key code representing the 'L' key.
|
static |
A key code representing the left key.
|
static |
A key code representing the 'M' key.
|
static |
A key code representing the '-' key.
|
static |
A key code representing the 'N' key.
|
static |
A key code representing the '9' key.
|
static |
A key code representing the 'O' key.
|
static |
A key code representing the '1' key.
|
inlineconstexpr |
|
inlineconstexpr |
|
static |
A key code representing the 'P' key.
|
static |
A key code representing the page down key.
|
static |
A key code representing the pacge up key.
|
static |
A key code representing the '+' key.
|
static |
A key code representing the 'Q' key.
|
static |
A key code representing the 'R' key.
|
static |
A key code representing the right key.
|
static |
A key code representing the 'S' key.
|
static |
A key code representing the '7' key.
|
static |
A key code representing the '6' key.
|
static |
A key code representing the '/' key.
|
static |
A key code representing the space key.
|
static |
A key code representing the 'T' key.
|
static |
A key code representing the tab key.
|
static |
A key code representing the '3' key.
|
static |
A key code representing the '2' key.
|
static |
A key code representing the 'U' key.
|
static |
A key code representing an unknown key.
|
static |
A key code representing the up key.
|
static |
A key code representing the 'V' key.
|
static |
A key code representing the 'W' key.
|
static |
A key code representing the 'X' key.
|
static |
A key code representing the 'Y' key.
|
static |
A key code representing the 'Z' key.
|
static |
A key code representing the '0' key.
size_t luciad::KeyCode::index |
The index of the key code.