client

package
v0.0.0-...-8a42bd8 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Action

type Action int
const (
	ACTION_BUTTON         Action = iota
	MENU_UP_BUTTON        Action = iota
	MENU_DOWN_BUTTON      Action = iota
	MENU_LEFT_BUTTON      Action = iota
	MENU_RIGHT_BUTTON     Action = iota
	PLAYER_FORWARD        Action = iota
	PLAYER_BACKWARD       Action = iota
	PLAYER_ROTATE_LEFT    Action = iota
	PLAYER_ROTATE_RIGHT   Action = iota
	PLAYER_VIEW_INVENTORY Action = iota
	DEBUG_DUMP            Action = iota
	PROGRAM_QUIT          Action = iota
)

type InputHandler

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

func NewInputHandler

func NewInputHandler() *InputHandler

func (*InputHandler) IsActive

func (handler *InputHandler) IsActive(a Action) bool

type WindowHandler

type WindowHandler struct {
	InputHandler *InputHandler
	// contains filtered or unexported fields
}

func NewWindowHandler

func NewWindowHandler(width, height int, title string) *WindowHandler

func (*WindowHandler) GetCurrentTime

func (windowHandler *WindowHandler) GetCurrentTime() float64

func (*WindowHandler) GetTimeSinceLastFrame

func (windowHandler *WindowHandler) GetTimeSinceLastFrame() float64

func (*WindowHandler) ShouldClose

func (windowHandler *WindowHandler) ShouldClose() bool

func (*WindowHandler) StartFrame

func (windowHandler *WindowHandler) StartFrame()

Jump to

Keyboard shortcuts

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