touchcontroller

package
v0.3.26 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package touchcontroller implements a touch screen-based gamepad.

Index

Constants

This section is empty.

Variables

View Source
var (
	// SkipFrame causes the touch controller to be inactive for 1 frame.
	SkipFrame bool
	// StartSelect causes the touch controller to display the start/select buttons for 1 frame.
	StartSelect bool
)

Functions

func Held

func Held() ([]input.Button, time.Time)

Held returns the currently held buttons.

func Render

func Render()

Render draws the touch controller to the screen.

func Size

func Size(e size.Event)

Size is a callback for screen resize events.

func Touch

func Touch(e touch.Event)

Touch is a callback for touchscreen or mouse pointer events.

Types

This section is empty.

Jump to

Keyboard shortcuts

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