Versions in this module Expand all Collapse all v1 v1.8.1 Apr 13, 2024 v1.8.0 Apr 13, 2024 Changes in this version + const ButtonBumperLeft + const ButtonBumperRight + const ButtonDpadDown + const ButtonDpadLeft + const ButtonDpadRight + const ButtonDpadUp + const ButtonEast + const ButtonGamepad + const ButtonMode + const ButtonNorth + const ButtonSelect + const ButtonSouth + const ButtonStart + const ButtonThumbLeft + const ButtonThumbRight + const ButtonTriggerLeft + const ButtonTriggerRight + const ButtonWest + const Key0 + const Key1 + const Key102Nd + const Key2 + const Key3 + const Key4 + const Key5 + const Key6 + const Key7 + const Key8 + const Key9 + const KeyA + const KeyAgain + const KeyAlterase + const KeyApostrophe + const KeyB + const KeyBack + const KeyBackslash + const KeyBackspace + const KeyBassboost + const KeyBattery + const KeyBluetooth + const KeyBookmarks + const KeyBrightnessCycle + const KeyBrightnessZero + const KeyBrightnessdown + const KeyBrightnessup + const KeyC + const KeyCalc + const KeyCamera + const KeyCancel + const KeyCapslock + const KeyChat + const KeyClose + const KeyClosecd + const KeyCoffee + const KeyComma + const KeyCompose + const KeyComputer + const KeyConfig + const KeyConnect + const KeyCopy + const KeyCut + const KeyCyclewindows + const KeyD + const KeyDashboard + const KeyDelete + const KeyDeletefile + const KeyDirection + const KeyDisplayOff + const KeyDocuments + const KeyDot + const KeyDown + const KeyE + const KeyEdit + const KeyEjectcd + const KeyEjectclosecd + const KeyEmail + const KeyEnd + const KeyEnter + const KeyEqual + const KeyEsc + const KeyExit + const KeyF + const KeyF1 + const KeyF10 + const KeyF11 + const KeyF12 + const KeyF13 + const KeyF14 + const KeyF15 + const KeyF16 + const KeyF17 + const KeyF18 + const KeyF19 + const KeyF2 + const KeyF20 + const KeyF21 + const KeyF22 + const KeyF23 + const KeyF24 + const KeyF3 + const KeyF4 + const KeyF5 + const KeyF6 + const KeyF7 + const KeyF8 + const KeyF9 + const KeyFastforward + const KeyFile + const KeyFinance + const KeyFind + const KeyForward + const KeyForwardmail + const KeyFront + const KeyG + const KeyGrave + const KeyH + const KeyHangeul + const KeyHanja + const KeyHelp + const KeyHenkan + const KeyHiragana + const KeyHome + const KeyHomepage + const KeyHp + const KeyI + const KeyInsert + const KeyIso + const KeyJ + const KeyK + const KeyKatakana + const KeyKatakanahiragana + const KeyKbdillumdown + const KeyKbdillumtoggle + const KeyKbdillumup + const KeyKp0 + const KeyKp1 + const KeyKp2 + const KeyKp3 + const KeyKp4 + const KeyKp5 + const KeyKp6 + const KeyKp7 + const KeyKp8 + const KeyKp9 + const KeyKpasterisk + const KeyKpcomma + const KeyKpdot + const KeyKpenter + const KeyKpequal + const KeyKpjpcomma + const KeyKpleftparen + const KeyKpminus + const KeyKpplus + const KeyKpplusminus + const KeyKprightparen + const KeyKpslash + const KeyL + const KeyLeft + const KeyLeftalt + const KeyLeftbrace + const KeyLeftctrl + const KeyLeftmeta + const KeyLeftshift + const KeyLinefeed + const KeyM + const KeyMacro + const KeyMail + const KeyMedia + const KeyMenu + const KeyMicmute + const KeyMinus + const KeyMove + const KeyMsdos + const KeyMuhenkan + const KeyMute + const KeyN + const KeyNew + const KeyNextsong + const KeyNumlock + const KeyO + const KeyOpen + const KeyP + const KeyPagedown + const KeyPageup + const KeyPaste + const KeyPause + const KeyPausecd + const KeyPhone + const KeyPlay + const KeyPlaycd + const KeyPlaypause + const KeyPower + const KeyPrevioussong + const KeyPrint + const KeyProg1 + const KeyProg2 + const KeyProg3 + const KeyProg4 + const KeyProps + const KeyQ + const KeyQuestion + const KeyR + const KeyRecord + const KeyRedo + const KeyRefresh + const KeyReply + const KeyRewind + const KeyRfkill + const KeyRight + const KeyRightalt + const KeyRightbrace + const KeyRightctrl + const KeyRightmeta + const KeyRightshift + const KeyRo + const KeyS + const KeySave + const KeyScale + const KeyScrolldown + const KeyScrolllock + const KeyScrollup + const KeySearch + const KeySemicolon + const KeySend + const KeySendfile + const KeySetup + const KeyShop + const KeySlash + const KeySleep + const KeySound + const KeySpace + const KeySport + const KeyStop + const KeyStopcd + const KeySuspend + const KeySwitchvideomode + const KeySysrq + const KeyT + const KeyTab + const KeyU + const KeyUndo + const KeyUnknown + const KeyUp + const KeyUwb + const KeyV + const KeyVideoNext + const KeyVideoPrev + const KeyVolumedown + const KeyVolumeup + const KeyW + const KeyWakeup + const KeyWimax + const KeyWlan + const KeyWww + const KeyX + const KeyXfer + const KeyY + const KeyYen + const KeyZ + const KeyZenkakuhankaku + const MaximumAxisValue + type Dial interface + Turn func(delta int32) error + func CreateDial(path string, name []byte) (Dial, error) + type Gamepad interface + ButtonDown func(key int) error + ButtonPress func(key int) error + ButtonUp func(key int) error + HatPress func(direction HatDirection) error + HatRelease func(direction HatDirection) error + LeftStickMove func(x, y float32) error + LeftStickMoveX func(value float32) error + LeftStickMoveY func(value float32) error + LeftTriggerForce func(value float32) error + RightStickMove func(x, y float32) error + RightStickMoveX func(value float32) error + RightStickMoveY func(value float32) error + RightTriggerForce func(value float32) error + func CreateGamepad(path string, name []byte, vendor uint16, product uint16) (Gamepad, error) + type HatAction int + const Press + const Release + type HatDirection int + const HatDown + const HatLeft + const HatRight + const HatUp + type Keyboard interface + FetchSyspath func() (string, error) + KeyDown func(key int) error + KeyPress func(key int) error + KeyUp func(key int) error + func CreateKeyboard(path string, name []byte) (Keyboard, error) + type Mouse interface + FetchSyspath func() (string, error) + LeftClick func() error + LeftPress func() error + LeftRelease func() error + MiddleClick func() error + MiddlePress func() error + MiddleRelease func() error + Move func(x, y int32) error + MoveDown func(pixel int32) error + MoveLeft func(pixel int32) error + MoveRight func(pixel int32) error + MoveUp func(pixel int32) error + RightClick func() error + RightPress func() error + RightRelease func() error + Wheel func(horizontal bool, delta int32) error + func CreateMouse(path string, name []byte) (Mouse, error) + type MultiTouch interface + FetchSyspath func() (string, error) + GetContacts func() []multiTouchContact + func CreateMultiTouch(path string, name []byte, minX int32, maxX int32, minY int32, maxY int32, ...) (MultiTouch, error) + type TouchPad interface + FetchSyspath func() (string, error) + LeftClick func() error + LeftPress func() error + LeftRelease func() error + MoveTo func(x int32, y int32) error + RightClick func() error + RightPress func() error + RightRelease func() error + TouchDown func() error + TouchUp func() error + func CreateTouchPad(path string, name []byte, minX int32, maxX int32, minY int32, maxY int32) (TouchPad, error)