Documentation
¶
Overview ¶
Binding for JS to Go This package is responsible for the communication between the JS and Go code.
Index ¶
- type App
- func (a *App) BeforeClose(ctx context.Context) (prevent bool)
- func (a *App) GetAudioProcess() []audio.AudioProcess
- func (a *App) GetCurrentOS() string
- func (a *App) IsGamepadEnabled() bool
- func (a *App) IsKeyboardEnabled() bool
- func (a *App) IsMouseEnabled() bool
- func (a *App) IsWhipEnabled() bool
- func (a *App) LogPrintln(info string)
- func (a *App) NotifyCloseClient()
- func (a *App) NotifyCreateClient()
- func (a *App) OpenViGEmWizard() (err string)
- func (a *App) SetAudioPid(pid uint32)
- func (a *App) Shutdown(ctx context.Context)
- func (a *App) Startup(ctx context.Context)
- func (a *App) ToogleGamepad()
- func (a *App) ToogleKeyboard()
- func (a *App) ToogleMouse()
- func (a *App) ToogleWhip()
- func (a *App) TryClosePeerConnection() bool
- func (a *App) TryCreateHost(ICEServers []webrtc.ICEServer, offerEncoded string) (value string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type App ¶
type App struct {
// contains filtered or unexported fields
}
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.
func (*App) GetAudioProcess ¶
func (a *App) GetAudioProcess() []audio.AudioProcess
func (*App) GetCurrentOS ¶
func (*App) IsGamepadEnabled ¶
func (*App) IsKeyboardEnabled ¶
func (*App) IsMouseEnabled ¶
func (*App) IsWhipEnabled ¶
func (*App) LogPrintln ¶
func (*App) NotifyCloseClient ¶
func (a *App) NotifyCloseClient()
func (*App) NotifyCreateClient ¶
func (a *App) NotifyCreateClient()
func (*App) OpenViGEmWizard ¶
func (*App) SetAudioPid ¶
func (*App) ToogleGamepad ¶
func (a *App) ToogleGamepad()
func (*App) ToogleKeyboard ¶
func (a *App) ToogleKeyboard()
func (*App) ToogleMouse ¶
func (a *App) ToogleMouse()
func (*App) ToogleWhip ¶
func (a *App) ToogleWhip()
func (*App) TryClosePeerConnection ¶
Closes the peer connection and returns a boolean indication if a connection existed and was closed or not
Click to show internal directories.
Click to hide internal directories.