Magnum::Platform::GlutApplication::KeyEvent class

Key event.

Base classes

class InputEvent
Base for input events.

Public types

enum class Key: UnsignedInt { Esc = '\x1b', Up = GLUT_KEY_UP << 16, Down = GLUT_KEY_DOWN << 16, Left = GLUT_KEY_LEFT << 16, Right = GLUT_KEY_RIGHT << 16, F1 = GLUT_KEY_F1 << 16, F2 = GLUT_KEY_F2 << 16, F3 = GLUT_KEY_F3 << 16, F4 = GLUT_KEY_F4 << 16, F5 = GLUT_KEY_F5 << 16, F6 = GLUT_KEY_F6 << 16, F7 = GLUT_KEY_F7 << 16, F8 = GLUT_KEY_F8 << 16, F9 = GLUT_KEY_F9 << 16, F10 = GLUT_KEY_F10 << 16, F11 = GLUT_KEY_F11 << 16, F12 = GLUT_KEY_F12 << 16, Home = GLUT_KEY_HOME << 16, End = GLUT_KEY_END << 16, PageUp = GLUT_KEY_PAGE_UP << 16, PageDown = GLUT_KEY_PAGE_DOWN << 16, Space = ' ', Comma = ',', Period = '.', Minus = '-', Plus = '+', Slash = '/', Percent = '%', Equal = '=', Zero = '0', One = '1', Two = '2', Three = '3', Four = '4', Five = '5', Six = '6', Seven = '7', Eight = '8', Nine = '9', A = 'a', B = 'b', C = 'c', D = 'd', E = 'e', F = 'f', G = 'g', H = 'h', I = 'i', J = 'j', K = 'k', L = 'l', M = 'm', N = 'n', O = 'o', P = 'p', Q = 'q', R = 'r', S = 's', T = 't', U = 'u', V = 'v', W = 'w', X = 'x', Y = 'y', Z = 'z' }
Key.

Public functions

auto key() const -> Key constexpr
Key.
auto position() const -> Vector2i constexpr
Position.

Enum documentation

enum class Magnum::Platform::GlutApplication::KeyEvent::Key: UnsignedInt

Key.

Enumerators
Esc

Escape

Up

Up arrow

Down

Down arrow

Left

Left arrow

Right

Right arrow

F1

F1

F2

F2

F3

F3

F4

F4

F5

F5

F6

F6

F7

F7

F8

F8

F9

F9

F10

F10

F11

F11

F12

F12

Home

Home

End

End

PageUp

Page up

PageDown

Page down

Space

Space

Comma

Comma

Period

Period

Minus

Minus

Plus

Plus

Slash

Slash

Percent

Percent

Equal

Equal

Zero

Zero

One

One

Two

Two

Three

Three

Four

Four

Five

Five

Six

Six

Seven

Seven

Eight

Eight

Nine

Nine

A

Letter A

B

Letter B

C

Letter C

D

Letter D

E

Letter E

F

Letter F

G

Letter G

H

Letter H

I

Letter I

J

Letter J

K

Letter K

L

Letter L

M

Letter M

N

Letter N

O

Letter O

P

Letter P

Q

Letter Q

R

Letter R

S

Letter S

T

Letter T

U

Letter U

V

Letter V

W

Letter W

X

Letter X

Y

Letter Y

Z

Letter Z