input_system class
#include <include/redhand/input.hpp>
The input_
Contents
- Reference
Public static functions
-
static auto getKeyAction(keyboard_
keys wantedKey) -> key_ actions - returns the state of a given key
-
static auto isKeyPressed(keyboard_
keys wantedKey) -> bool - check if a given key is pressed
-
static auto static_getKeyAction(keyboard_
keys wantedKey) -> key_ actions -
static auto static_isKeyPressed(keyboard_
keys wantedKey) -> bool
Function documentation
static key_ actions redhand:: input_system:: getKeyAction(keyboard_ keys wantedKey)
returns the state of a given key
| Parameters | |
|---|---|
| wantedKey | the key you want to know about |
| Returns | key_actions the current state of that key |
static bool redhand:: input_system:: isKeyPressed(keyboard_ keys wantedKey)
check if a given key is pressed
| Parameters | |
|---|---|
| wantedKey | the key you want to know about |
| Returns | true the key is pressed |