KeyboardButton

class KeyboardButton

This class is just used as a convenient namespace for grouping all of these handy functions that return buttons which map to standard keyboard keys.

Inheritance diagram

Inheritance diagram of KeyboardButton

KeyboardButton(void) = default
KeyboardButton(KeyboardButton const&) = default
static ButtonHandle alt(void)
static ButtonHandle ascii_key(char ascii_equivalent)

Returns the ButtonHandle associated with the particular ASCII character, if there is one, or ButtonHandle::none() if there is not.

static ButtonHandle backspace(void)
static ButtonHandle caps_lock(void)
static ButtonHandle control(void)
static ButtonHandle down(void)
static ButtonHandle end(void)
static ButtonHandle enter(void)
static ButtonHandle escape(void)
static ButtonHandle f1(void)
static ButtonHandle f10(void)
static ButtonHandle f11(void)
static ButtonHandle f12(void)
static ButtonHandle f13(void)

PC keyboards don’t have these four buttons, but Macs do.

static ButtonHandle f14(void)
static ButtonHandle f15(void)
static ButtonHandle f16(void)
static ButtonHandle f2(void)
static ButtonHandle f3(void)
static ButtonHandle f4(void)
static ButtonHandle f5(void)
static ButtonHandle f6(void)
static ButtonHandle f7(void)
static ButtonHandle f8(void)
static ButtonHandle f9(void)
static ButtonHandle help(void)

delete is a C++ keyword.

static ButtonHandle home(void)
static ButtonHandle insert(void)
static ButtonHandle lalt(void)
static ButtonHandle lcontrol(void)
static ButtonHandle left(void)
static ButtonHandle lmeta(void)
static ButtonHandle lshift(void)
static ButtonHandle menu(void)
static ButtonHandle meta(void)
static ButtonHandle num_lock(void)
static ButtonHandle page_down(void)
static ButtonHandle page_up(void)
static ButtonHandle pause(void)
static ButtonHandle print_screen(void)
static ButtonHandle ralt(void)
static ButtonHandle rcontrol(void)
static ButtonHandle right(void)
static ButtonHandle rmeta(void)
static ButtonHandle rshift(void)
static ButtonHandle scroll_lock(void)
static ButtonHandle shift(void)
static ButtonHandle shift_lock(void)
static ButtonHandle space(void)
static ButtonHandle tab(void)
static ButtonHandle up(void)