Documentation
¶
Overview ¶
Package device include device related types
Index ¶
Constants ¶
View Source
const ( MouseLeftButton = MouseButton(0) // MouseLeftButton is the left mouse button MouseRightButton = MouseButton(1) // MouseRightButton is the right mouse button MouseMiddleButton = MouseButton(2) // MouseMiddleButton is the middle mouse button )
View Source
const ( FirstKey = Key(iota) // FirstKey is the initial value for keys KeyLeft // KeyLeft if the left cursor key KeyRight // KeyRight if the right cursor key KeyUp // KeyUp if the up cursor key KeyDown // KeyDown if the down cursor key KeySpace // KeySpace if the space cursor key KeyAltLeft // KeySpace if the left alt key KeyCtrlLeft // KeyCtrlLeft if the left control key KeyAltRight // KeyAltRight if the right alt key KeyCtrlRight // KeyCtrlRight if the right control key KeyEscape // KeyEscape is the escape key KeyReturn // KeyReturn is the return key KeyW // KeyW is the W key KeyS // KeyS is the S key KeyA // KeyA is the A key KeyD // KeyD is the D key KeyF1 // KeyF1 is the F1 key KeyF2 // KeyF2 is the F2 key KeyF3 // KeyF3 is the F3 key KeyF4 // KeyF4 is the F4 key KeyF5 // KeyF5 is the F5 key KeyF6 // KeyF6 is the F6 key KeyF7 // KeyF7 is the F7 key KeyF8 // KeyF8 is the F8 key KeyF9 // KeyF9 is the F9 key KeyF10 // KeyF10 is the F10 key KeyF11 // KeyF11 is the F11 key KeyF12 // KeyF12 is the F12 key TotalKeys // TotalKeys is the total number of keys )
View Source
const ( GamepadFirstButton = GamepadButton(iota) // GamepadFirstButton initial value for game pad buttons GamepadUp // GamepadUp DPAD UP GamepadRight // GamepadRight DPAD RIGHT GamepadDown // GamepadDown DPAD DOWN GamepadLeft // GamepadLeft DPAD LEFT GamepadButton1 // GamepadButton1 XBOX Y, PS3 Triangle GamepadButton2 // GamepadButton2 XBOX X, PS3 Square GamepadButton3 // GamepadButton3 XBOX A, PS3 Cross GamepadButton4 // GamepadButton4 XBOX B, PS3 Circle GamepadLeftTrigger1 // GamepadLeftTrigger1 L1 GamepadLeftTrigger2 // GamepadLeftTrigger2 L2 GamepadRightTrigger1 // GamepadRightTrigger1 R1 GamepadRightTrigger2 // GamepadRightTrigger2 R2 GamepadSelect // GamepadSelect XBOX Option, PS3 Select GamepadSpecial // GamepadSpecial XBOX X Button, PS3 PS Button GamepadStart // GamepadStart XBOX Start, PS3 Start GamepadLeftThumb // GamepadLeftThumb LEFT THUMB GamepadRightThumb // GamepadRightThumb RIGHT THUMB TotalButtons // TotalButtons total gamepad buttons )
View Source
const ( GamepadFirstStick = GamepadStick(iota) // GamepadFirstStick initial value for game pad stick GamepadLeftStick // GamepadLeftStick is the left stick GamepadRightStick // GamepadRightStick is the right stick TotalSticks // TotalSticks total gamepad sticks )
View Source
const (
MaxGamePads = 4 // Max Number of Gamepads
)
Device constants
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GamepadButton ¶ added in v0.1.13
type GamepadButton int32
GamepadButton represents a gamepad button
Click to show internal directories.
Click to hide internal directories.