package
Version:
v0.0.0-...-a8eda97
Opens a new window with list of versions in this module.
Published: Aug 27, 2022
License: MIT
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Dir represents a direction.
const (
DirUp Dir = iota
DirRight
DirDown
DirLeft
)
String returns a string representing the direction.
func (d Dir) Vector() (x, y int)
Vector returns a [-1, 1] value for each axis.
Input represents the current key states.
NewInput generates a new Input object.
Dir returns a currently pressed direction.
Dir returns false if no direction key is pressed.
Update updates the current input states.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.