Documentation
¶
Index ¶
Constants ¶
View Source
const ( KeyEscape = Key(glfw.KeyEscape) KeyUp = Key(glfw.KeyUp) KeyDown = Key(glfw.KeyDown) KeyLeft = Key(glfw.KeyLeft) KeyRight = Key(glfw.KeyRight) KeyEnter = Key(glfw.KeyEnter) KeyA = Key(glfw.KeyA) KeyB = Key(glfw.KeyB) KeyC = Key(glfw.KeyC) KeyD = Key(glfw.KeyD) KeyE = Key(glfw.KeyE) KeyF = Key(glfw.KeyF) )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Gamepad ¶
type Gamepad struct {
Available bool
LeftStickX float32
LeftStickY float32
RightStickX float32
RightStickY float32
LeftTrigger float32
RightTrigger float32
LeftBumper bool
RightBumper bool
}
func NewGamepad ¶
func NewGamepad() *Gamepad
type GamepadRecorder ¶
type GamepadRecorder struct {
// contains filtered or unexported fields
}
func NewGamepadRecorder ¶
func NewGamepadRecorder() *GamepadRecorder
func (*GamepadRecorder) Fetch ¶
func (r *GamepadRecorder) Fetch() *Gamepad
func (*GamepadRecorder) Record ¶
func (r *GamepadRecorder) Record()
func (*GamepadRecorder) Release ¶
func (r *GamepadRecorder) Release(gamepad *Gamepad)
type Keyboard ¶
type Keyboard struct {
// contains filtered or unexported fields
}
func NewKeyboard ¶
func NewKeyboard() *Keyboard
type KeyboardRecorder ¶
type KeyboardRecorder struct {
// contains filtered or unexported fields
}
func NewKeyboardRecorder ¶
func NewKeyboardRecorder(window *glfw.Window) *KeyboardRecorder
func (*KeyboardRecorder) Fetch ¶
func (r *KeyboardRecorder) Fetch() *Keyboard
func (*KeyboardRecorder) Record ¶
func (r *KeyboardRecorder) Record()
func (*KeyboardRecorder) Release ¶
func (r *KeyboardRecorder) Release(keyboard *Keyboard)
Click to show internal directories.
Click to hide internal directories.