gamepad

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	StandardGamepadButtonLeftStickUp     ebiten.StandardGamepadButton = -1
	StandardGamepadButtonLeftStickRight  ebiten.StandardGamepadButton = -2
	StandardGamepadButtonLeftStickDown   ebiten.StandardGamepadButton = -3
	StandardGamepadButtonLeftStickLeft   ebiten.StandardGamepadButton = -4
	StandardGamepadButtonRightStickUp    ebiten.StandardGamepadButton = -5
	StandardGamepadButtonRightStickRight ebiten.StandardGamepadButton = -6
	StandardGamepadButtonRightStickDown  ebiten.StandardGamepadButton = -7
	StandardGamepadButtonRightStickLeft  ebiten.StandardGamepadButton = -8
)

Variables

View Source
var CurrentButtonMapping = defaultButtonMapping

Functions

func ButtonToString

func ButtonToString(btn ebiten.StandardGamepadButton) string

Types

type ButtonMapping

type ButtonMapping struct {
	Up     ebiten.StandardGamepadButton
	Down   ebiten.StandardGamepadButton
	Action ebiten.StandardGamepadButton
}

Jump to

Keyboard shortcuts

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