Documentation ¶
Index ¶
- type Input
- func (i *Input) AppendGamepadIDs(gamepadIDs []driver.GamepadID) []driver.GamepadID
- func (i *Input) AppendInputChars(runes []rune) []rune
- func (i *Input) AppendTouchIDs(touchIDs []driver.TouchID) []driver.TouchID
- func (i *Input) CursorPosition() (x, y int)
- func (i *Input) GamepadAxisNum(id driver.GamepadID) int
- func (i *Input) GamepadAxisValue(id driver.GamepadID, axis int) float64
- func (i *Input) GamepadButtonNum(id driver.GamepadID) int
- 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) IsStandardGamepadButtonPressed(id driver.GamepadID, button driver.StandardGamepadButton) bool
- func (i *Input) IsStandardGamepadLayoutAvailable(id driver.GamepadID) bool
- func (i *Input) StandardGamepadAxisValue(id driver.GamepadID, axis driver.StandardGamepadAxis) float64
- func (i *Input) StandardGamepadButtonValue(id driver.GamepadID, button driver.StandardGamepadButton) float64
- func (i *Input) TouchPosition(id driver.TouchID) (x, y int)
- func (i *Input) Wheel() (xoff, yoff float64)
- type UserInterface
- func (u *UserInterface) CursorMode() driver.CursorMode
- func (u *UserInterface) CursorShape() driver.CursorShape
- func (u *UserInterface) DeviceScaleFactor() float64
- func (u *UserInterface) FPSMode() driver.FPSMode
- func (*UserInterface) Graphics() driver.Graphics
- func (u *UserInterface) Input() driver.Input
- func (u *UserInterface) IsFocused() bool
- func (u *UserInterface) IsFullscreen() bool
- func (u *UserInterface) IsRunnableOnUnfocused() bool
- func (u *UserInterface) IsScreenTransparent() 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) ScheduleFrame()
- func (u *UserInterface) ScreenSizeInFullscreen() (int, int)
- func (u *UserInterface) SetCursorMode(mode driver.CursorMode)
- func (u *UserInterface) SetCursorShape(shape driver.CursorShape)
- func (u *UserInterface) SetFPSMode(mode driver.FPSMode)
- func (u *UserInterface) SetFullscreen(fullscreen bool)
- func (u *UserInterface) SetInitFocused(focused bool)
- func (u *UserInterface) SetRunnableOnUnfocused(runnableOnUnfocused bool)
- func (u *UserInterface) SetScreenTransparent(transparent bool)
- func (u *UserInterface) Window() driver.Window
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Input ¶
type Input struct {
// contains filtered or unexported fields
}
func (*Input) AppendGamepadIDs ¶ added in v2.2.0
func (*Input) AppendInputChars ¶ added in v2.2.0
func (*Input) AppendTouchIDs ¶ added in v2.2.0
func (*Input) CursorPosition ¶
func (*Input) GamepadAxisValue ¶ added in v2.2.0
func (*Input) IsGamepadButtonPressed ¶
func (*Input) IsMouseButtonPressed ¶
func (i *Input) IsMouseButtonPressed(button driver.MouseButton) bool
func (*Input) IsStandardGamepadButtonPressed ¶ added in v2.2.0
func (*Input) IsStandardGamepadLayoutAvailable ¶ added in v2.2.0
func (*Input) StandardGamepadAxisValue ¶ added in v2.2.0
func (*Input) StandardGamepadButtonValue ¶ added in v2.2.0
type UserInterface ¶
type UserInterface struct {
// contains filtered or unexported fields
}
func Get ¶
func Get() *UserInterface
func (*UserInterface) CursorMode ¶
func (u *UserInterface) CursorMode() driver.CursorMode
func (*UserInterface) CursorShape ¶ added in v2.1.0
func (u *UserInterface) CursorShape() driver.CursorShape
func (*UserInterface) DeviceScaleFactor ¶
func (u *UserInterface) DeviceScaleFactor() float64
func (*UserInterface) FPSMode ¶ added in v2.2.0
func (u *UserInterface) FPSMode() driver.FPSMode
func (*UserInterface) Graphics ¶
func (*UserInterface) Graphics() driver.Graphics
func (*UserInterface) Input ¶
func (u *UserInterface) Input() driver.Input
func (*UserInterface) IsFocused ¶
func (u *UserInterface) IsFocused() bool
func (*UserInterface) IsFullscreen ¶
func (u *UserInterface) IsFullscreen() bool
func (*UserInterface) IsRunnableOnUnfocused ¶
func (u *UserInterface) IsRunnableOnUnfocused() bool
func (*UserInterface) IsScreenTransparent ¶
func (u *UserInterface) IsScreenTransparent() bool
func (*UserInterface) MonitorPosition ¶
func (u *UserInterface) MonitorPosition() (int, int)
func (*UserInterface) ResetForFrame ¶
func (u *UserInterface) ResetForFrame()
func (*UserInterface) RunWithoutMainLoop ¶
func (u *UserInterface) RunWithoutMainLoop(context driver.UIContext)
func (*UserInterface) ScheduleFrame ¶ added in v2.2.0
func (u *UserInterface) ScheduleFrame()
func (*UserInterface) ScreenSizeInFullscreen ¶
func (u *UserInterface) ScreenSizeInFullscreen() (int, int)
func (*UserInterface) SetCursorMode ¶
func (u *UserInterface) SetCursorMode(mode driver.CursorMode)
func (*UserInterface) SetCursorShape ¶ added in v2.1.0
func (u *UserInterface) SetCursorShape(shape driver.CursorShape)
func (*UserInterface) SetFPSMode ¶ added in v2.2.0
func (u *UserInterface) SetFPSMode(mode driver.FPSMode)
func (*UserInterface) SetFullscreen ¶
func (u *UserInterface) SetFullscreen(fullscreen bool)
func (*UserInterface) SetInitFocused ¶
func (u *UserInterface) SetInitFocused(focused bool)
func (*UserInterface) SetRunnableOnUnfocused ¶
func (u *UserInterface) SetRunnableOnUnfocused(runnableOnUnfocused bool)
func (*UserInterface) SetScreenTransparent ¶
func (u *UserInterface) SetScreenTransparent(transparent bool)
func (*UserInterface) Window ¶
func (u *UserInterface) Window() driver.Window
Click to show internal directories.
Click to hide internal directories.