Versions in this module Expand all Collapse all v2 v2.0.7 Mar 14, 2021 Changes in this version + type Input struct — darwin/amd64, linux/amd64, windows/amd64 + func (i *Input) CursorPosition() (x, y int) + func (i *Input) GamepadAxis(id driver.GamepadID, axis int) float64 + func (i *Input) GamepadAxisNum(id driver.GamepadID) int + func (i *Input) GamepadButtonNum(id driver.GamepadID) int + func (i *Input) GamepadIDs() []driver.GamepadID + func (i *Input) GamepadName(id driver.GamepadID) string + func (i *Input) GamepadSDLID(id driver.GamepadID) string + func (i *Input) IsGamepadButtonPressed(id driver.GamepadID, button driver.GamepadButton) bool + func (i *Input) IsKeyPressed(key driver.Key) bool + func (i *Input) IsMouseButtonPressed(button driver.MouseButton) bool + func (i *Input) RuneBuffer() []rune + func (i *Input) TouchIDs() []driver.TouchID + func (i *Input) TouchPosition(id driver.TouchID) (x, y int) + func (i *Input) Wheel() (xoff, yoff float64) + type UserInterface struct — darwin/amd64, linux/amd64, windows/amd64 + func Get() *UserInterface + func (*UserInterface) Graphics() driver.Graphics + func (u *UserInterface) CursorMode() driver.CursorMode + func (u *UserInterface) DeviceScaleFactor() float64 + func (u *UserInterface) Input() driver.Input + func (u *UserInterface) IsFocused() bool + func (u *UserInterface) IsFullscreen() bool + func (u *UserInterface) IsMousePassThru() bool + func (u *UserInterface) IsRunnableOnUnfocused() bool + func (u *UserInterface) IsScreenTransparent() bool + func (u *UserInterface) IsVsyncEnabled() bool + func (u *UserInterface) MonitorPosition() (int, int) + func (u *UserInterface) ResetForFrame() + func (u *UserInterface) Run(uicontext driver.UIContext) error + func (u *UserInterface) RunWithoutMainLoop(context driver.UIContext) + func (u *UserInterface) ScreenSizeInFullscreen() (int, int) + func (u *UserInterface) SetCursorMode(mode driver.CursorMode) + func (u *UserInterface) SetFullscreen(fullscreen bool) + func (u *UserInterface) SetInitFocused(focused bool) + func (u *UserInterface) SetMousePassThru(passThru bool) + func (u *UserInterface) SetRunnableOnUnfocused(runnableOnUnfocused bool) + func (u *UserInterface) SetScreenTransparent(transparent bool) + func (u *UserInterface) SetVsyncEnabled(enabled bool) + func (u *UserInterface) Window() driver.Window