controlmap

package
v0.0.0-...-20233a0 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ButtonMap = map[string]ebiten.GamepadButton{
	"Button0":  ebiten.GamepadButton0,
	"Button1":  ebiten.GamepadButton1,
	"Button2":  ebiten.GamepadButton2,
	"Button3":  ebiten.GamepadButton3,
	"Button4":  ebiten.GamepadButton4,
	"Button5":  ebiten.GamepadButton5,
	"Button6":  ebiten.GamepadButton6,
	"Button7":  ebiten.GamepadButton7,
	"Button8":  ebiten.GamepadButton8,
	"Button9":  ebiten.GamepadButton9,
	"Button10": ebiten.GamepadButton10,
	"Button11": ebiten.GamepadButton11,
	"Button12": ebiten.GamepadButton12,
	"Button13": ebiten.GamepadButton13,
	"Button14": ebiten.GamepadButton14,
	"Button15": ebiten.GamepadButton15,
	"Button16": ebiten.GamepadButton16,
	"Button17": ebiten.GamepadButton17,
	"Button18": ebiten.GamepadButton18,
	"Button19": ebiten.GamepadButton19,
	"Button20": ebiten.GamepadButton20,
	"Button21": ebiten.GamepadButton21,
	"Button22": ebiten.GamepadButton22,
	"Button23": ebiten.GamepadButton23,
	"Button24": ebiten.GamepadButton24,
	"Button25": ebiten.GamepadButton25,
	"Button26": ebiten.GamepadButton26,
	"Button27": ebiten.GamepadButton27,
	"Button28": ebiten.GamepadButton28,
	"Button29": ebiten.GamepadButton29,
	"Button30": ebiten.GamepadButton30,
	"Button31": ebiten.GamepadButton31,
}

ButtonMap is a gamepad mapping

View Source
var KeyMap = map[string]ebiten.Key{
	"0":            ebiten.Key0,
	"1":            ebiten.Key1,
	"2":            ebiten.Key2,
	"3":            ebiten.Key3,
	"4":            ebiten.Key4,
	"5":            ebiten.Key5,
	"6":            ebiten.Key6,
	"7":            ebiten.Key7,
	"8":            ebiten.Key8,
	"9":            ebiten.Key9,
	"A":            ebiten.KeyA,
	"B":            ebiten.KeyB,
	"C":            ebiten.KeyC,
	"D":            ebiten.KeyD,
	"E":            ebiten.KeyE,
	"F":            ebiten.KeyF,
	"G":            ebiten.KeyG,
	"H":            ebiten.KeyH,
	"I":            ebiten.KeyI,
	"J":            ebiten.KeyJ,
	"K":            ebiten.KeyK,
	"L":            ebiten.KeyL,
	"M":            ebiten.KeyM,
	"N":            ebiten.KeyN,
	"O":            ebiten.KeyO,
	"P":            ebiten.KeyP,
	"Q":            ebiten.KeyQ,
	"R":            ebiten.KeyR,
	"S":            ebiten.KeyS,
	"T":            ebiten.KeyT,
	"U":            ebiten.KeyU,
	"V":            ebiten.KeyV,
	"W":            ebiten.KeyW,
	"X":            ebiten.KeyX,
	"Y":            ebiten.KeyY,
	"Z":            ebiten.KeyZ,
	"Apostrophe":   ebiten.KeyApostrophe,
	"Backslash":    ebiten.KeyBackslash,
	"Backspace":    ebiten.KeyBackspace,
	"CapsLock":     ebiten.KeyCapsLock,
	"Comma":        ebiten.KeyComma,
	"Delete":       ebiten.KeyDelete,
	"Down":         ebiten.KeyDown,
	"End":          ebiten.KeyEnd,
	"Enter":        ebiten.KeyEnter,
	"Equal":        ebiten.KeyEqual,
	"Escape":       ebiten.KeyEscape,
	"F1":           ebiten.KeyF1,
	"F2":           ebiten.KeyF2,
	"F3":           ebiten.KeyF3,
	"F4":           ebiten.KeyF4,
	"F5":           ebiten.KeyF5,
	"F6":           ebiten.KeyF6,
	"F7":           ebiten.KeyF7,
	"F8":           ebiten.KeyF8,
	"F9":           ebiten.KeyF9,
	"F10":          ebiten.KeyF10,
	"F11":          ebiten.KeyF11,
	"F12":          ebiten.KeyF12,
	"GraveAccent":  ebiten.KeyGraveAccent,
	"Home":         ebiten.KeyHome,
	"Insert":       ebiten.KeyInsert,
	"KP0":          ebiten.KeyKP0,
	"KP1":          ebiten.KeyKP1,
	"KP2":          ebiten.KeyKP2,
	"KP3":          ebiten.KeyKP3,
	"KP4":          ebiten.KeyKP4,
	"KP5":          ebiten.KeyKP5,
	"KP6":          ebiten.KeyKP6,
	"KP7":          ebiten.KeyKP7,
	"KP8":          ebiten.KeyKP8,
	"KP9":          ebiten.KeyKP9,
	"KPAdd":        ebiten.KeyKPAdd,
	"KPDecimal":    ebiten.KeyKPDecimal,
	"KPDivide":     ebiten.KeyKPDivide,
	"KPEnter":      ebiten.KeyKPEnter,
	"KPEqual":      ebiten.KeyKPEqual,
	"KPMultiply":   ebiten.KeyKPMultiply,
	"KPSubtract":   ebiten.KeyKPSubtract,
	"Left":         ebiten.KeyLeft,
	"LeftBracket":  ebiten.KeyLeftBracket,
	"Menu":         ebiten.KeyMenu,
	"Minus":        ebiten.KeyMinus,
	"NumLock":      ebiten.KeyNumLock,
	"PageDown":     ebiten.KeyPageDown,
	"PageUp":       ebiten.KeyPageUp,
	"Pause":        ebiten.KeyPause,
	"Period":       ebiten.KeyPeriod,
	"PrintScreen":  ebiten.KeyPrintScreen,
	"Right":        ebiten.KeyRight,
	"RightBracket": ebiten.KeyRightBracket,
	"ScrollLock":   ebiten.KeyScrollLock,
	"Semicolon":    ebiten.KeySemicolon,
	"Slash":        ebiten.KeySlash,
	"Space":        ebiten.KeySpace,
	"Tab":          ebiten.KeyTab,
	"Up":           ebiten.KeyUp,
	"Alt":          ebiten.KeyAlt,
	"Control":      ebiten.KeyControl,
	"Shift":        ebiten.KeyShift,
}

KeyMap is a US keyboard mapping

Functions

func MakeButtonConfig

func MakeButtonConfig() map[string]string

MakeButtonConfig creates a buttonconfig map

func MakeKeyConfig

func MakeKeyConfig() map[string]string

MakeKeyConfig creates a keyconfig map

Types

This section is empty.

Jump to

Keyboard shortcuts

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