Documentation ¶
Index ¶
Constants ¶
View Source
const ( LeftShift = 1073742049 RightShift = 1073742053 CapsLock = 1073741881 Enter = 13 Backspace = 8 Escape = 27 )
Defines keyboard runes
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KeyInput ¶
KeyInput is a single key that is sent to the screen object
func NewKeyInputFromEvent ¶
func NewKeyInputFromEvent(e *sdl.KeyboardEvent) *KeyInput
NewKeyInputFromEvent creates a new key input from a keyboard event
type Keyboard ¶
type Keyboard struct {
// contains filtered or unexported fields
}
Keyboard represents a physical keyboard
func (*Keyboard) ProcessKeyInput ¶
ProcessKeyInput processes a keyboard event
Click to show internal directories.
Click to hide internal directories.