Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultKeyBindings = KeyBindings{ ActionWalkUp: []ebiten.Key{ebiten.KeyW, ebiten.KeyUp}, ActionWalkDown: []ebiten.Key{ebiten.KeyS, ebiten.KeyDown}, ActionWalkLeft: []ebiten.Key{ebiten.KeyA, ebiten.KeyLeft}, ActionWalkRight: []ebiten.Key{ebiten.KeyD, ebiten.KeyRight}, ActionFullScreen: []ebiten.Key{ebiten.KeyF11}, }
Functions ¶
This section is empty.
Types ¶
type Action ¶
type Action uint
const ( ActionWalkUp Action ActionWalkDown ActionWalkLeft ActionWalkRight ActionFullScreen )
type EventType ¶
type EventType uint
const ( EventStartServer EventType EventConnectedToServer EventDisconnectedFromServer )
type KeyBindings ¶
type KeyBindings map[Action][]ebiten.Key
func (KeyBindings) Clone ¶
func (k KeyBindings) Clone() KeyBindings
func (KeyBindings) IsActionJustPressed ¶
func (k KeyBindings) IsActionJustPressed(action Action) bool
func (KeyBindings) IsActionPressed ¶
func (k KeyBindings) IsActionPressed(action Action) bool
Click to show internal directories.
Click to hide internal directories.