KeyEvent

Keyboard press and release events

Members

Functions

opEquals
bool opEquals(const(char)[] name)
Undocumented in source. Be warned that the author may not have intended to support it.
toStr
string toStr()
Undocumented in source. Be warned that the author may not have intended to support it.
toStrBuf
const(char)[] toStrBuf(char[] dest)
Undocumented in source. Be warned that the author may not have intended to support it.

Static functions

parse
KeyEvent parse(const(char)[] name)

Parse string into key name with modifiers. It accepts things like:

Variables

character
dchar character;
hardwareCode
uint hardwareCode;

A platform and hardware specific code for the key

key
Key key;

see table below. Always use the symbolic names, even for ASCII characters, since the actual numbers vary across platforms. See Key

modifierState
uint modifierState;

see enum ModifierState. They are bitwise combined together.

pressed
bool pressed;

true if the key was just pressed, false if it was just released. note: released events aren't always sent...

window
SimpleWindow window;

associated Window

Meta