sdl2inputbackend

package
v0.0.0-...-c7db75a Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2021 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SDL2InputBackend

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

func Create

func Create() (*SDL2InputBackend, error)

func (*SDL2InputBackend) CursorPosition

func (i *SDL2InputBackend) CursorPosition() (x int, y int)

func (*SDL2InputBackend) InputChars

func (i *SDL2InputBackend) InputChars() []rune

func (*SDL2InputBackend) IsKeyJustPressed

func (i *SDL2InputBackend) IsKeyJustPressed(key inputbackend.Key) bool

func (*SDL2InputBackend) IsKeyJustReleased

func (i *SDL2InputBackend) IsKeyJustReleased(key inputbackend.Key) bool

func (*SDL2InputBackend) IsKeyPressed

func (i *SDL2InputBackend) IsKeyPressed(key inputbackend.Key) bool

func (*SDL2InputBackend) IsMouseButtonJustPressed

func (i *SDL2InputBackend) IsMouseButtonJustPressed(button inputbackend.MouseButton) bool

func (*SDL2InputBackend) IsMouseButtonJustReleased

func (i *SDL2InputBackend) IsMouseButtonJustReleased(button inputbackend.MouseButton) bool

func (*SDL2InputBackend) IsMouseButtonPressed

func (i *SDL2InputBackend) IsMouseButtonPressed(button inputbackend.MouseButton) bool

func (*SDL2InputBackend) KeyPressDuration

func (i *SDL2InputBackend) KeyPressDuration(key inputbackend.Key) int

func (SDL2InputBackend) Process

func (i SDL2InputBackend) Process() error

Jump to

Keyboard shortcuts

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