Documentation ¶
Index ¶
- type Joystick
- func (j *Joystick) CheckedBind(ev string, f func(*Joystick, *joystick.State))
- func (j *Joystick) CheckedIDBind(ev string, f func(*Joystick, uint32))
- func (j *Joystick) Destroy()
- func (j *Joystick) Init() event.CID
- func (j *Joystick) RenderAndListen(ctx *scene.Context, joy *joystick.Joystick, layer int) error
- type Keyboard
- type KeyboardLayout
- type LayoutKey
- type LayoutPosition
- type LayoutQWERTY
- type Mouse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Joystick ¶
type Joystick struct { // Rect is the rect this joystick should be drawn to. // Defaults to (0,0)->(320,240) Rect floatgeom.Rect2 // StickDeadzone is the lowest value of stick movements that should // be rendered. StickDeadzone int16 // BaseLayer is the base layer to render the resulting renderables to // if -1, it will render only to the layer provided to RenderAndListen. BaseLayer int event.CID // contains filtered or unexported fields }
Joystick visualizes the inputs sent to a controller
func (*Joystick) CheckedBind ¶
func (*Joystick) CheckedIDBind ¶
type Keyboard ¶
type KeyboardLayout ¶
type LayoutKey ¶
type LayoutKey interface {
Pos() LayoutPosition
}
type LayoutPosition ¶
type LayoutQWERTY ¶
Click to show internal directories.
Click to hide internal directories.