Luna::HID::KeyCode

enum KeyCode : u16
{
    esc
    f1
    f2
    f3
    f4
    f5
    f6
    f7
    f8
    f9
    f10
    f11
    f12
    grave
    num0
    num1
    num2
    num3
    num4
    num5
    num6
    num7
    num8
    num9
    equal
    minus
    backspace
    a
    b
    c
    d
    e
    f
    g
    h
    i
    j
    k
    l
    m
    n
    o
    p
    q
    r
    s
    t
    u
    v
    w
    x
    y
    z
    tab
    caps_lock
    enter
    ctrl
    l_ctrl
    r_ctrl
    shift
    l_shift
    r_shift
    menu
    l_menu
    r_menu
    l_system
    r_system
    apps
    spacebar
    l_branket
    r_branket
    backslash
    semicolon
    quote
    comma
    period
    slash
    print_screen
    scroll_lock
    pause
    insert
    home
    page_up
    page_down
    del
    end
    left
    up
    right
    down
    num_lock
    numpad0
    numpad1
    numpad2
    numpad3
    numpad4
    numpad5
    numpad6
    numpad7
    numpad8
    numpad9
}

A platform-independent key code mapping for standard QWERTY keyboard.

Options

  • esc

    ESC key.

  • f1

    F1 key.

  • f2

    F2 key.

  • f3

    F3 key.

  • f4

    F4 key.

  • f5

    F5 key.

  • f6

    F6 key.

  • f7

    F7 key.

  • f8

    F8 key.

  • f9

    F9 key.

  • f10

    F10 key.

  • f11

    F11 key.

  • f12

    F12 key.

  • grave

    ~ key.

  • num0

    0 key.

  • num1

    1 key.

  • num2

    2 key.

  • num3

    3 key.

  • num4

    4 key.

  • num5

    5 key.

  • num6

    6 key.

  • num7

    7 key.

  • num8

    8 key.

  • num9

    9 key.

  • equal

    =+ key.

  • minus

    -_ key.

  • backspace

    Backspace key.

  • a

    A key.

  • b

    B key.

  • c

    C key.

  • d

    D key.

  • e

    E key.

  • f

    F key.

  • g

    G key.

  • h

    H key.

  • i

    I key.

  • j

    J key.

  • k

    K key.

  • l

    L key.

  • m

    M key.

  • n

    N key.

  • o

    O key.

  • p

    P key.

  • q

    Q key.

  • r

    R key.

  • s

    S key.

  • t

    T key.

  • u

    U key.

  • v

    V key.

  • w

    W key.

  • x

    X key.

  • y

    Y key.

  • z

    Z key.

  • tab

    Tab key.

  • caps_lock

    CapsLock key.

  • enter

    Enter key.

  • ctrl

    Control key on any side.

  • l_ctrl

    Left control key.

  • r_ctrl

    Right control key.

  • shift

    Shift key on any side.

  • l_shift

    Left shift key.

  • r_shift

    Right shift key.

  • menu

    Alt key on Windows, option key on Mac, on any side.

  • l_menu

    Left alt key on Windows, left option key on Mac.

  • r_menu

    Right alt key on Windows, right option key on Mac.

  • l_system

    Left Windows key on Windows, left command key on Mac.

  • r_system

    Right Windows key on Windows, right command key on Mac.

  • apps

    Applications key on Windows, usually the at the right of the right Windows key. Not all keyboards have this key.

  • spacebar

    Spacebar key.

  • l_branket

    [{ key on US standard keyboard

  • r_branket

    ]} key on US standard keyboard

  • backslash

    | key on US standard keyboard

  • semicolon

    ;: key on US standard keyboard

  • quote

    '" key on US standard keyboard

  • comma

    ,< key

  • period

    .> key

  • slash

    /? key on US standard keyboard

  • print_screen

    Print screen key.

  • scroll_lock

    Scroll lock key.

  • pause

    Pause key.

  • insert

    Insert key.

  • home

    Home key.

  • page_up

    Page up key.

  • page_down

    Page down key.

  • del

    Delete key.

  • end

    End key.

  • left

    Left arrow key.

  • up

    Up arrow key.

  • right

    Right arrow key.

  • down

    Down arrow key.

  • num_lock

    Number lock key on Windows, clear key on Mac.

  • numpad0

    0 key on the number pad.

  • numpad1

    1 key on the number pad.

  • numpad2

    2 key on the number pad.

  • numpad3

    3 key on the number pad.

  • numpad4

    4 key on the number pad.

  • numpad5

    5 key on the number pad.

  • numpad6

    6 key on the number pad.

  • numpad7

    7 key on the number pad.

  • numpad8

    8 key on the number pad.

  • numpad9

    9 key on the number pad.