messages

package
v0.0.0-...-d4a0833 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 10, 2021 License: Unlicense Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const TypeKeyDown = tinygametools.EventName("KeyDown")
View Source
const TypeKeyHeld = tinygametools.EventName("KeyHeld")
View Source
const TypeKeyReleased = tinygametools.EventName("KeyReleased")
View Source
const TypeMouseMove = tinygametools.EventName("MouseMove")

Variables

This section is empty.

Functions

This section is empty.

Types

type KeyDown

type KeyDown struct {
	Key tinygametools.Key
}

KeyDown event object for keydown

func (*KeyDown) Message

func (message *KeyDown) Message() interface{}

Message

func (*KeyDown) Type

func (message *KeyDown) Type() tinygametools.EventName

Type returns message type

type KeyHeld

type KeyHeld struct {
	Key tinygametools.Key
}

KeyHeld event object for when key is held down

func (*KeyHeld) Message

func (message *KeyHeld) Message() interface{}

func (*KeyHeld) Type

func (message *KeyHeld) Type() tinygametools.EventName

type KeyReleased

type KeyReleased struct {
	Key tinygametools.Key
}

KeyReleased event object for key released

func (*KeyReleased) Message

func (message *KeyReleased) Message() interface{}

func (*KeyReleased) Type

func (message *KeyReleased) Type() tinygametools.EventName

type MouseMove

type MouseMove struct {
	XY [2]float64
}

MouseMove event object for when mouse is moved

func (*MouseMove) Message

func (message *MouseMove) Message() interface{}

func (*MouseMove) Type

func (message *MouseMove) Type() tinygametools.EventName

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL