events

package
v0.0.0-...-53be003 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2021 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Event

type Event interface {
	IsQuit() bool
	IsMouseMotion() bool
	IsMouseDown() bool
	IsMouseUp() bool
	IsMouseWheel() bool
	GetEventData() EventData
}

type EventData

type EventData map[string]interface{}

type EventScanner

type EventScanner interface {
	GetEvents() []Event
}

type SdlEvent

type SdlEvent struct {
	// contains filtered or unexported fields
}

func (*SdlEvent) GetEventData

func (e *SdlEvent) GetEventData() EventData

func (*SdlEvent) IsMouseDown

func (e *SdlEvent) IsMouseDown() bool

func (*SdlEvent) IsMouseMotion

func (e *SdlEvent) IsMouseMotion() bool

func (*SdlEvent) IsMouseUp

func (e *SdlEvent) IsMouseUp() bool

func (*SdlEvent) IsMouseWheel

func (e *SdlEvent) IsMouseWheel() bool

func (*SdlEvent) IsQuit

func (e *SdlEvent) IsQuit() bool

type SdlEventScanner

type SdlEventScanner struct{}

func NewEventScanner

func NewEventScanner() *SdlEventScanner

func (*SdlEventScanner) GetEvents

func (evscanner *SdlEventScanner) GetEvents() []Event

Jump to

Keyboard shortcuts

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