Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Buttons = []struct { Value Button TSName string }{ {A, "A"}, {B, "B"}, {Start, "START"}, {Select, "SELECT"}, {Up, "UP"}, {Right, "RIGHT"}, {Down, "DOWN"}, {Left, "LEFT"}, }
View Source
var DisplayEvents = []struct { Value RenderEvent TSName string }{ {Render, "RENDER"}, }
View Source
var Joypads = []struct { Value Joypad TSName string }{ {Primary, "PRIMARY"}, {Secondary, "SECONDARY"}, }
Functions ¶
This section is empty.
Types ¶
type App ¶
type App struct {
ContextHolder
}
App struct
func (*App) BeforeClose ¶
beforeClose is called when the application is about to quit, either by clicking the window close button or calling runtime.Quit. Returning true will cause the application to continue, false will continue shutdown as normal.
type ContextHolder ¶
type ContextHolder struct {
// contains filtered or unexported fields
}
func (*ContextHolder) SetContext ¶
func (c *ContextHolder) SetContext(ctx context.Context)
type WebviewAudioDriver ¶
type WebviewAudioDriver struct {
ContextHolder
}
func NewWebviewAudioDriver ¶
func NewWebviewAudioDriver() *WebviewAudioDriver
type WebviewDisplayDriver ¶
type WebviewDisplayDriver struct {
ContextHolder
}
func NewWebviewDisplayDriver ¶
func NewWebviewDisplayDriver() *WebviewDisplayDriver
type WebviewInputDriver ¶
type WebviewInputDriver struct { ContextHolder // contains filtered or unexported fields }
func NewWebviewInputDriver ¶
func NewWebviewInputDriver() *WebviewInputDriver
Click to show internal directories.
Click to hide internal directories.