bindings

package
v0.0.0-...-2d48324 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 31, 2025 License: GPL-3.0 Imports: 16 Imported by: 0

Documentation

Overview

Binding for JS to Go This package is responsible for the communication between the JS and Go code.

Index

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 NewApp

func NewApp(assets embed.FS) *App

NewApp creates a new App application struct

func (*App) BeforeClose

func (a *App) BeforeClose(ctx context.Context) (prevent bool)

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 (a *App) GetCurrentOS() string

func (*App) IsGamepadEnabled

func (a *App) IsGamepadEnabled() bool

func (*App) IsKeyboardEnabled

func (a *App) IsKeyboardEnabled() bool

func (*App) IsMouseEnabled

func (a *App) IsMouseEnabled() bool

func (*App) IsWhipEnabled

func (a *App) IsWhipEnabled() bool

func (*App) LogPrintln

func (a *App) LogPrintln(info string)

func (*App) NotifyCloseClient

func (a *App) NotifyCloseClient()

func (*App) NotifyCreateClient

func (a *App) NotifyCreateClient()

func (*App) OpenViGEmWizard

func (a *App) OpenViGEmWizard() (err string)

func (*App) SetAudioPid

func (a *App) SetAudioPid(pid uint32)

func (*App) Shutdown

func (a *App) Shutdown(ctx context.Context)

Shutdown is called at application termination

func (*App) Startup

func (a *App) Startup(ctx context.Context)

Startup is called at application Startup

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

func (a *App) TryClosePeerConnection() bool

Closes the peer connection and returns a boolean indication if a connection existed and was closed or not

func (*App) TryCreateHost

func (a *App) TryCreateHost(ICEServers []webrtc.ICEServer, offerEncoded string) (value string)

Create a Host Peer, it receives the offer encoded and returns the encoded answer response

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL