Documentation ¶
Rendered for windows/amd64
Index ¶
- Constants
- func Get(id ID, state *State) error
- func Vibrate(id ID, vibration *Vibration) error
- type All
- type Button
- type ID
- type State
- func (state *State) Pressed(button Button) bool
- func (state *State) RectDPad() (thumb Thumb)
- func (state *State) RectLeft() Thumb
- func (state *State) RectRight() Thumb
- func (state *State) RoundDPad() (thumb Thumb)
- func (state *State) RoundLeft() Thumb
- func (state *State) RoundRight() Thumb
- func (state *State) Update() error
- func (state *State) Vibrate(left, right uint16)
- type Thumb
- type Vibration
Constants ¶
View Source
const ( ControllerCount = ID(4) TriggerThreshold = 30 LeftThumbDeadZone = 7849 RightThumbDeadZone = 8689 )
View Source
const ( DPadUp Button = 0x0001 DPadDown = 0x0002 DPadLeft = 0x0004 DPadRight = 0x0008 Start Button = 0x0010 Back = 0x0020 LeftThumb Button = 0x0040 RightThumb = 0x0080 LeftShoulder Button = 0x0100 RightShoulder = 0x0200 ButtonA Button = 0x1000 ButtonB = 0x2000 ButtonX = 0x4000 ButtonY = 0x8000 )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type All ¶
type All [ControllerCount]State
Click to show internal directories.
Click to hide internal directories.