inputs

package
v0.0.0-...-ece690c Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Key0 = NewKey(ebiten.KeyDigit0)
View Source
var Key1 = NewKey(ebiten.KeyDigit1)
View Source
var Key2 = NewKey(ebiten.KeyDigit2)
View Source
var Key3 = NewKey(ebiten.KeyDigit3)
View Source
var Key4 = NewKey(ebiten.KeyDigit4)
View Source
var Key5 = NewKey(ebiten.KeyDigit5)
View Source
var Key6 = NewKey(ebiten.KeyDigit6)
View Source
var Key7 = NewKey(ebiten.KeyDigit7)
View Source
var Key8 = NewKey(ebiten.KeyDigit8)
View Source
var Key9 = NewKey(ebiten.KeyDigit9)
View Source
var KeyA = NewKey(ebiten.KeyA)
View Source
var KeyAll = All{} /* 105 elements not displayed */
View Source
var KeyAltLeft = NewKey(ebiten.KeyAltLeft)
View Source
var KeyAltRight = NewKey(ebiten.KeyAltRight)
View Source
var KeyAny = Any{} /* 105 elements not displayed */
View Source
var KeyArrowDown = NewKey(ebiten.KeyArrowDown)
View Source
var KeyArrowLeft = NewKey(ebiten.KeyArrowLeft)
View Source
var KeyArrowRight = NewKey(ebiten.KeyArrowRight)
View Source
var KeyArrowUp = NewKey(ebiten.KeyArrowUp)
View Source
var KeyB = NewKey(ebiten.KeyB)
View Source
var KeyBackquote = NewKey(ebiten.KeyBackquote)
View Source
var KeyBackslash = NewKey(ebiten.KeyBackslash)
View Source
var KeyBackspace = NewKey(ebiten.KeyBackspace)
View Source
var KeyBracketLeft = NewKey(ebiten.KeyBracketLeft)
View Source
var KeyBracketRight = NewKey(ebiten.KeyBracketRight)
View Source
var KeyC = NewKey(ebiten.KeyC)
View Source
var KeyCapsLock = NewKey(ebiten.KeyCapsLock)
View Source
var KeyComma = NewKey(ebiten.KeyComma)
View Source
var KeyContextMenu = NewKey(ebiten.KeyContextMenu)
View Source
var KeyControlLeft = NewKey(ebiten.KeyControlLeft)
View Source
var KeyControlRight = NewKey(ebiten.KeyControlRight)
View Source
var KeyCtrl = KeyControl
View Source
var KeyCtrlLeft = KeyControlLeft
View Source
var KeyCtrlRight = KeyControlRight
View Source
var KeyD = NewKey(ebiten.KeyD)
View Source
var KeyDelete = NewKey(ebiten.KeyDelete)
View Source
var KeyE = NewKey(ebiten.KeyE)
View Source
var KeyEnd = NewKey(ebiten.KeyEnd)
View Source
var KeyEnter = NewKey(ebiten.KeyEnter)
View Source
var KeyEqual = NewKey(ebiten.KeyEqual)
View Source
var KeyEscape = NewKey(ebiten.KeyEscape)
View Source
var KeyF = NewKey(ebiten.KeyF)
View Source
var KeyF1 = NewKey(ebiten.KeyF1)
View Source
var KeyF10 = NewKey(ebiten.KeyF10)
View Source
var KeyF11 = NewKey(ebiten.KeyF11)
View Source
var KeyF12 = NewKey(ebiten.KeyF12)
View Source
var KeyF2 = NewKey(ebiten.KeyF2)
View Source
var KeyF3 = NewKey(ebiten.KeyF3)
View Source
var KeyF4 = NewKey(ebiten.KeyF4)
View Source
var KeyF5 = NewKey(ebiten.KeyF5)
View Source
var KeyF6 = NewKey(ebiten.KeyF6)
View Source
var KeyF7 = NewKey(ebiten.KeyF7)
View Source
var KeyF8 = NewKey(ebiten.KeyF8)
View Source
var KeyF9 = NewKey(ebiten.KeyF9)
View Source
var KeyG = NewKey(ebiten.KeyG)
View Source
var KeyH = NewKey(ebiten.KeyH)
View Source
var KeyHome = NewKey(ebiten.KeyHome)
View Source
var KeyI = NewKey(ebiten.KeyI)
View Source
var KeyInsert = NewKey(ebiten.KeyInsert)
View Source
var KeyJ = NewKey(ebiten.KeyJ)
View Source
var KeyK = NewKey(ebiten.KeyK)
View Source
var KeyL = NewKey(ebiten.KeyL)
View Source
var KeyM = NewKey(ebiten.KeyM)
View Source
var KeyMetaLeft = NewKey(ebiten.KeyMetaLeft)
View Source
var KeyMetaRight = NewKey(ebiten.KeyMetaRight)
View Source
var KeyMinus = NewKey(ebiten.KeyMinus)
View Source
var KeyN = NewKey(ebiten.KeyN)
View Source
var KeyNumLock = NewKey(ebiten.KeyNumLock)
View Source
var KeyNumpad0 = NewKey(ebiten.KeyNumpad0)
View Source
var KeyNumpad1 = NewKey(ebiten.KeyNumpad1)
View Source
var KeyNumpad2 = NewKey(ebiten.KeyNumpad2)
View Source
var KeyNumpad3 = NewKey(ebiten.KeyNumpad3)
View Source
var KeyNumpad4 = NewKey(ebiten.KeyNumpad4)
View Source
var KeyNumpad5 = NewKey(ebiten.KeyNumpad5)
View Source
var KeyNumpad6 = NewKey(ebiten.KeyNumpad6)
View Source
var KeyNumpad7 = NewKey(ebiten.KeyNumpad7)
View Source
var KeyNumpad8 = NewKey(ebiten.KeyNumpad8)
View Source
var KeyNumpad9 = NewKey(ebiten.KeyNumpad9)
View Source
var KeyNumpadAdd = NewKey(ebiten.KeyNumpadAdd)
View Source
var KeyNumpadDecimal = NewKey(ebiten.KeyNumpadDecimal)
View Source
var KeyNumpadDivide = NewKey(ebiten.KeyNumpadDivide)
View Source
var KeyNumpadEnter = NewKey(ebiten.KeyNumpadEnter)
View Source
var KeyNumpadEqual = NewKey(ebiten.KeyNumpadEqual)
View Source
var KeyNumpadMultiply = NewKey(ebiten.KeyNumpadMultiply)
View Source
var KeyNumpadSubtract = NewKey(ebiten.KeyNumpadSubtract)
View Source
var KeyO = NewKey(ebiten.KeyO)
View Source
var KeyP = NewKey(ebiten.KeyP)
View Source
var KeyPageDown = NewKey(ebiten.KeyPageDown)
View Source
var KeyPageUp = NewKey(ebiten.KeyPageUp)
View Source
var KeyPause = NewKey(ebiten.KeyPause)
View Source
var KeyPeriod = NewKey(ebiten.KeyPeriod)
View Source
var KeyPrintScreen = NewKey(ebiten.KeyPrintScreen)
View Source
var KeyQ = NewKey(ebiten.KeyQ)
View Source
var KeyQuote = NewKey(ebiten.KeyQuote)
View Source
var KeyR = NewKey(ebiten.KeyR)
View Source
var KeyS = NewKey(ebiten.KeyS)
View Source
var KeyScrollLock = NewKey(ebiten.KeyScrollLock)
View Source
var KeySemicolon = NewKey(ebiten.KeySemicolon)
View Source
var KeyShiftLeft = NewKey(ebiten.KeyShiftLeft)
View Source
var KeyShiftRight = NewKey(ebiten.KeyShiftRight)
View Source
var KeySlash = NewKey(ebiten.KeySlash)
View Source
var KeySpace = NewKey(ebiten.KeySpace)
View Source
var KeyT = NewKey(ebiten.KeyT)
View Source
var KeyTab = NewKey(ebiten.KeyTab)
View Source
var KeyU = NewKey(ebiten.KeyU)
View Source
var KeyV = NewKey(ebiten.KeyV)
View Source
var KeyW = NewKey(ebiten.KeyW)
View Source
var KeyX = NewKey(ebiten.KeyX)
View Source
var KeyY = NewKey(ebiten.KeyY)
View Source
var KeyZ = NewKey(ebiten.KeyZ)
View Source
var MouseButton0 = MouseButtonLeft
View Source
var MouseButton1 = MouseButtonRight
View Source
var MouseButton2 = MouseButtonMiddle
View Source
var MouseButton3 = MouseButtonBack
View Source
var MouseButton4 = MouseButtonForward
View Source
var MouseButtonBack = NewMouseButton(ebiten.MouseButton3)
View Source
var MouseButtonForward = NewMouseButton(ebiten.MouseButton4)
View Source
var MouseButtonLeft = NewMouseButton(ebiten.MouseButton0)
View Source
var MouseButtonMiddle = NewMouseButton(ebiten.MouseButton1)
View Source
var MouseButtonRight = NewMouseButton(ebiten.MouseButton2)
View Source
var MouseCursor = &mouseCursor{}
View Source
var MouseWheelX = &mouseWheel{axis: 0}
View Source
var MouseWheelY = &mouseWheel{axis: 1}

Functions

This section is empty.

Types

type All

type All []ITrigger

----------------------------------------------------------------------------- INPUT ALL -----------------------------------------------------------------------------

func (All) GetBool

func (all All) GetBool() bool

func (All) GetFloat

func (all All) GetFloat() float64

func (All) IsDown

func (all All) IsDown() bool

func (All) IsPressed

func (all All) IsPressed() bool

func (All) IsReleased

func (all All) IsReleased() bool

func (All) IsUp

func (all All) IsUp() bool

func (All) Name

func (all All) Name() string

type Any

type Any []ITrigger

----------------------------------------------------------------------------- INPUT ANY -----------------------------------------------------------------------------

func (Any) GetBool

func (any Any) GetBool() bool

func (Any) GetFloat

func (any Any) GetFloat() float64

func (Any) IsDown

func (any Any) IsDown() bool

func (Any) IsPressed

func (any Any) IsPressed() bool

func (Any) IsReleased

func (any Any) IsReleased() bool

func (Any) IsUp

func (any Any) IsUp() bool

func (Any) Name

func (any Any) Name() string

type Device

type Device string
var DeviceGamepad Device = "gamepad"
var DeviceKeyboard Device = "keyboard"
var DeviceMouse Device = "mouse"
var DeviceTouch Device = "touch"

type GamepadButton

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

func (*GamepadButton) Code

func (k *GamepadButton) Code() int

func (*GamepadButton) Device

func (k *GamepadButton) Device() Device

func (*GamepadButton) GetBool

func (k *GamepadButton) GetBool() bool

func (*GamepadButton) GetFloat

func (k *GamepadButton) GetFloat() float64

func (*GamepadButton) Id

func (k *GamepadButton) Id() int

func (*GamepadButton) IsDown

func (k *GamepadButton) IsDown() bool

func (*GamepadButton) IsPressed

func (k *GamepadButton) IsPressed() bool

func (*GamepadButton) IsReleased

func (k *GamepadButton) IsReleased() bool

func (*GamepadButton) IsUp

func (k *GamepadButton) IsUp() bool

func (*GamepadButton) Name

func (k *GamepadButton) Name() string

type ICursor

type ICursor interface {
	Position() (x, y int)
	HasMoved() bool
	Moved() (x, y int)
	// contains filtered or unexported methods
}

type ITrigger

type ITrigger interface {
	Name() string
	IsDown() bool
	IsUp() bool
	IsPressed() bool
	IsReleased() bool
	GetBool() bool
	GetFloat() float64
	// contains filtered or unexported methods
}

type Key

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

func NewKey

func NewKey(code ebiten.Key) *Key

func (*Key) Code

func (k *Key) Code() int

func (*Key) Device

func (k *Key) Device() Device

func (*Key) GetBool

func (k *Key) GetBool() bool

func (*Key) GetFloat

func (k *Key) GetFloat() float64

func (*Key) IsDown

func (k *Key) IsDown() bool

func (*Key) IsPressed

func (k *Key) IsPressed() bool

func (*Key) IsReleased

func (k *Key) IsReleased() bool

func (*Key) IsUp

func (k *Key) IsUp() bool

func (*Key) Name

func (k *Key) Name() string

type MouseButton

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

func NewMouseButton

func NewMouseButton(code ebiten.MouseButton) *MouseButton

func (*MouseButton) Code

func (k *MouseButton) Code() int

func (*MouseButton) Device

func (k *MouseButton) Device() Device

func (*MouseButton) GetBool

func (k *MouseButton) GetBool() bool

func (*MouseButton) GetFloat

func (k *MouseButton) GetFloat() float64

func (*MouseButton) IsDown

func (k *MouseButton) IsDown() bool

func (*MouseButton) IsPressed

func (k *MouseButton) IsPressed() bool

func (*MouseButton) IsReleased

func (k *MouseButton) IsReleased() bool

func (*MouseButton) IsUp

func (k *MouseButton) IsUp() bool

func (*MouseButton) Name

func (k *MouseButton) Name() string

type System

type System struct {
}

----------------------------------------------------------------------------- INPUT SYSTEM -----------------------------------------------------------------------------

func NewSystem

func NewSystem() *System

func (*System) Update

func (i *System) Update()

Jump to

Keyboard shortcuts

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