Companion

Holds the scancodes, which name physical key positions.

Properties

Link copied to clipboard
val A: Scancode

The key where A sits on a US layout.

Link copied to clipboard
val B: Scancode

The key where B sits on a US layout.

Link copied to clipboard

The backspace key.

Link copied to clipboard
val C: Scancode

The key where C sits on a US layout.

Link copied to clipboard
val COUNT: Int

The number of scancodes. Every scancode SDL reports has a code below it, so it sizes arrays indexed by scancode.

Link copied to clipboard
val D: Scancode

The key where D sits on a US layout.

Link copied to clipboard

The key where 0 sits on the main row of a US layout.

Link copied to clipboard

The key where 1 sits on the main row of a US layout.

Link copied to clipboard

The key where 2 sits on the main row of a US layout.

Link copied to clipboard

The key where 3 sits on the main row of a US layout.

Link copied to clipboard

The key where 4 sits on the main row of a US layout.

Link copied to clipboard

The key where 5 sits on the main row of a US layout.

Link copied to clipboard

The key where 6 sits on the main row of a US layout.

Link copied to clipboard

The key where 7 sits on the main row of a US layout.

Link copied to clipboard

The key where 8 sits on the main row of a US layout.

Link copied to clipboard

The key where 9 sits on the main row of a US layout.

Link copied to clipboard

The down arrow key.

Link copied to clipboard
val E: Scancode

The key where E sits on a US layout.

Link copied to clipboard

The enter (return) key on the main keyboard.

Link copied to clipboard

The escape key.

Link copied to clipboard
val F: Scancode

The key where F sits on a US layout.

Link copied to clipboard

The F1 function key.

Link copied to clipboard

The F10 function key.

Link copied to clipboard

The F11 function key.

Link copied to clipboard

The F12 function key.

Link copied to clipboard

The F2 function key.

Link copied to clipboard

The F3 function key.

Link copied to clipboard

The F4 function key.

Link copied to clipboard

The F5 function key.

Link copied to clipboard

The F6 function key.

Link copied to clipboard

The F7 function key.

Link copied to clipboard

The F8 function key.

Link copied to clipboard

The F9 function key.

Link copied to clipboard
val G: Scancode

The key where G sits on a US layout.

Link copied to clipboard
val H: Scancode

The key where H sits on a US layout.

Link copied to clipboard
val I: Scancode

The key where I sits on a US layout.

Link copied to clipboard
val J: Scancode

The key where J sits on a US layout.

Link copied to clipboard
val K: Scancode

The key where K sits on a US layout.

Link copied to clipboard
val L: Scancode

The key where L sits on a US layout.

Link copied to clipboard

The left arrow key.

Link copied to clipboard

The left alt (option) key.

Link copied to clipboard

The left control key.

Link copied to clipboard

The left shift key.

Link copied to clipboard
val M: Scancode

The key where M sits on a US layout.

Link copied to clipboard
val N: Scancode

The key where N sits on a US layout.

Link copied to clipboard
val O: Scancode

The key where O sits on a US layout.

Link copied to clipboard
val P: Scancode

The key where P sits on a US layout.

Link copied to clipboard
val Q: Scancode

The key where Q sits on a US layout.

Link copied to clipboard
val R: Scancode

The key where R sits on a US layout.

Link copied to clipboard

The right arrow key.

Link copied to clipboard

The right alt (option) key.

Link copied to clipboard

The right control key.

Link copied to clipboard

The right shift key.

Link copied to clipboard
val S: Scancode

The key where S sits on a US layout.

Link copied to clipboard

The space bar.

Link copied to clipboard
val T: Scancode

The key where T sits on a US layout.

Link copied to clipboard

The tab key.

Link copied to clipboard
val U: Scancode

The key where U sits on a US layout.

Link copied to clipboard

A key SDL cannot identify.

Link copied to clipboard

The up arrow key.

Link copied to clipboard
val V: Scancode

The key where V sits on a US layout.

Link copied to clipboard
val W: Scancode

The key where W sits on a US layout.

Link copied to clipboard
val X: Scancode

The key where X sits on a US layout.

Link copied to clipboard
val Y: Scancode

The key where Y sits on a US layout.

Link copied to clipboard
val Z: Scancode

The key where Z sits on a US layout.