Documentation ¶
Index ¶
Constants ¶
View Source
const ( EClick = "click" EKeyDown = "keydown" EKeyUp = "keyup" EWheel = "wheel" )
Default event type
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClickEvent ¶
type Game ¶
type Game struct {
// contains filtered or unexported fields
}
func (*Game) AddEventListener ¶
copied code from same function in go-event lib
func (*Game) DispatchEvent ¶
func (*Game) RemoveEventListener ¶
copied code from same function in go-event lib
type KeyPosition ¶
type KeyPosition int
const ( KeyInLeft KeyPosition = 1 << iota KeyInRight KeyIsPressed )
const KeyNotPress KeyPosition = 0
type KeyboardEvent ¶
type KeyboardEvent interface { event.Event Keys() []ebiten.Key Ctrl() KeyPosition Alt() KeyPosition Shift() KeyPosition }
type WheelEvent ¶
type WheelEvent interface {
event.Event
Wheel() (x, y float64)
}
Click to show internal directories.
Click to hide internal directories.