evt

package
v0.0.0-...-1c0f6f5 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EventTypeQuit     = EventType(-1)
	EventTypeNone     = EventType(0)
	EventTypeKeyboard = EventType(1)
	EventTypeMouse    = EventType(2)
	EventTypeTouch    = EventType(3)
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Event

type Event struct {
	EvType EventType
	Mouse  EventMouse
}

func NewEventFromSDL

func NewEventFromSDL(e sdl.Event) *Event

type EventMouse

type EventMouse struct {
	X int
	Y int
}

type EventType

type EventType int

Jump to

Keyboard shortcuts

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