Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // DefaultKeyboard allows immediate access to default keyboard input DefaultKeyboard = NewKeyboard() // DefaultMouse allows immediate access to default mouse input DefaultMouse = NewMouse() // DefaultAsk provides a default instance of the questions.Ask struct DefaultAsk = questions.New(DefaultKeyboard, DefaultMouse) )
Functions ¶
func NewKeyboard ¶
NewKeyboard returns a new keyboard watcher that can be used to monitor keyboard input. The returned watcher is configured with the default polling mode of Eco.
Types ¶
type InputState ¶
InputState holds the current state of the keyboard and mouse input.
type Polling ¶
type Polling uint8
Polling represents the update speed for detecting input.
Polling mode constants, Eco will check the input ten times per second. Normal will check thirty times per seconds and Game will update at sixty times per second. Default is Eco which is suggested for standard console or user input that does not require a high update interval.
Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
goinput
command
|
|
|
internal
|
|
|
common
Package common provides shared utilities and types for internal package use.
|
Package common provides shared utilities and types for internal package use. |
|
Package keyboard implements various keyboard related data types.
|
Package keyboard implements various keyboard related data types. |
|
Package mouse implements various mouse related data types.
|
Package mouse implements various mouse related data types. |
Click to show internal directories.
Click to hide internal directories.