ui

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AudioOut

type AudioOut struct {
	// contains filtered or unexported fields
}

func CreateAudio

func CreateAudio(sampleRate, sampleSize, channels, bufferSize int) *AudioOut

func (*AudioOut) Close

func (s *AudioOut) Close()

func (*AudioOut) IsStreamProcessed

func (s *AudioOut) IsStreamProcessed() bool

func (*AudioOut) Mute

func (s *AudioOut) Mute(m bool)

func (*AudioOut) SetVolume

func (s *AudioOut) SetVolume(volume float32)

func (*AudioOut) ToggleMute

func (s *AudioOut) ToggleMute()

func (*AudioOut) UpdateStream

func (s *AudioOut) UpdateStream(buf []float32)

func (*AudioOut) WaitStreamProcessed

func (s *AudioOut) WaitStreamProcessed()

type Window

type Window struct {
	ZapperDelegate func(brightness uint8, trigger bool)
	InputDelegate  func(buttons uint8)
	MuteDelegate   func()
	ResyncDelegate func()
	ResetDelegate  func()
	ShowPing       bool
	ShowFPS        bool
	FPS            int
	// contains filtered or unexported fields
}

func CreateWindow

func CreateWindow(frame *[width][height]color.RGBA, scale int, verbose bool) *Window

func (*Window) Close

func (w *Window) Close()

func (*Window) HandleHotKeys

func (w *Window) HandleHotKeys()

func (*Window) InFocus

func (w *Window) InFocus() bool

func (*Window) Refresh

func (w *Window) Refresh()

func (*Window) SetFrameRate

func (w *Window) SetFrameRate(fps int)

func (*Window) SetGrayscale

func (w *Window) SetGrayscale(grayscale bool)

func (*Window) SetPingInfo

func (w *Window) SetPingInfo(pingMs int64)

func (*Window) SetTitle

func (w *Window) SetTitle(title string)

func (*Window) ShouldClose

func (w *Window) ShouldClose() bool

func (*Window) UpdateJoystick

func (w *Window) UpdateJoystick()

func (*Window) UpdateZapper

func (w *Window) UpdateZapper()

Jump to

Keyboard shortcuts

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