input

package
v0.0.0-...-c712ff3 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2021 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Overview

Package input handles keyboard and mouse input with SDL.

Index

Constants

View Source
const (
	ActionSubmit int = iota
	ActionQuit
	ActionUp
	ActionDown
	ActionLeft
	ActionRight
	ActionNotImplemented
	ActionUnknown
)

Variables

This section is empty.

Functions

func HandleInput

func HandleInput(e sdl.Event) int

Types

type CameraController

type CameraController interface {
	ProcessEvents([]sdl.Event) error
}

func NewCameraController

func NewCameraController(c engine.Camera) CameraController

type CutsceneController

type CutsceneController interface {
	ProcessEvents([]sdl.Event) error
}

func NewCutsceneController

func NewCutsceneController() CutsceneController

type GameController

type GameController interface {
	ProcessEvents([]sdl.Event) error
}

func NewGameController

func NewGameController() GameController
type MenuController interface {
	ProcessEvents([]sdl.Event) error
}

func NewMenuController

func NewMenuController(m menu.Menu) MenuController

Jump to

Keyboard shortcuts

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