redhand::input_system class

The input_system is used to handle user inputs for all kinds of devices.

Contents

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

static key_actions redhand::input_system::static_getKeyAction(keyboard_keys wantedKey)

static bool redhand::input_system::static_isKeyPressed(keyboard_keys wantedKey)