settings

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2026 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	KeyToNameFunc  func(ebiten.Key) (string, bool)
	PadToNameFunc  func(ebiten.StandardGamepadButton) (string, bool)
	IsReservedFunc func(ebiten.Key) bool
	ResolveKeyFunc func(string, string, map[string]string) string
	ResolvePadFunc func(string, string, map[string]string) string
)

keyToNameFunc and related are injected from the standalone package to avoid import cycles. They must be set before InputSection is used.

Functions

This section is empty.

Types

type AppearanceSection

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

AppearanceSection manages theme settings

func NewAppearanceSection

func NewAppearanceSection(callback types.ScreenCallback, config *storage.Config) *AppearanceSection

NewAppearanceSection creates a new appearance section

func (*AppearanceSection) Build

Build creates the appearance section UI

func (*AppearanceSection) SetConfig

func (a *AppearanceSection) SetConfig(config *storage.Config)

SetConfig updates the config reference

type AudioSection

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

AudioSection manages audio settings

func NewAudioSection

func NewAudioSection(callback types.ScreenCallback, config *storage.Config, systemInfo emucore.SystemInfo) *AudioSection

NewAudioSection creates a new audio section

func (*AudioSection) Build

func (a *AudioSection) Build(focus types.FocusManager) *widget.Container

Build creates the audio section UI

func (*AudioSection) SetConfig

func (a *AudioSection) SetConfig(config *storage.Config)

SetConfig updates the config reference

func (*AudioSection) SystemInfo added in v0.2.0

func (a *AudioSection) SystemInfo() emucore.SystemInfo

SystemInfo returns the system info for navigation setup

type InputSection added in v0.2.0

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

InputSection manages input binding settings

func NewInputSection added in v0.2.0

func NewInputSection(callback types.ScreenCallback, config *storage.Config, systemInfo emucore.SystemInfo) *InputSection

NewInputSection creates a new input section

func (*InputSection) Build added in v0.2.0

func (s *InputSection) Build(focus types.FocusManager) *widget.Container

Build creates the input section UI

func (*InputSection) IsCapturing added in v0.2.0

func (s *InputSection) IsCapturing() bool

IsCapturing returns true when the section is waiting for a key/button press

func (*InputSection) SetConfig added in v0.2.0

func (s *InputSection) SetConfig(config *storage.Config)

SetConfig updates the config reference

func (*InputSection) SystemInfo added in v0.2.0

func (s *InputSection) SystemInfo() emucore.SystemInfo

SystemInfo returns the system info for navigation setup

func (*InputSection) Update added in v0.2.0

func (s *InputSection) Update()

Update handles per-frame input capture logic

type LibrarySection

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

LibrarySection manages ROM folder settings

func NewLibrarySection

func NewLibrarySection(callback types.ScreenCallback, library *storage.Library) *LibrarySection

NewLibrarySection creates a new library section

func (*LibrarySection) Build

Build creates the library section UI

func (*LibrarySection) ClearPendingScan

func (l *LibrarySection) ClearPendingScan()

ClearPendingScan clears the pending scan flag

func (*LibrarySection) HasPendingScan

func (l *LibrarySection) HasPendingScan() bool

HasPendingScan returns true if a scan should be triggered

func (*LibrarySection) SetLibrary

func (l *LibrarySection) SetLibrary(library *storage.Library)

SetLibrary updates the library reference

type RetroAchievementsSection

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

RetroAchievementsSection manages RetroAchievements settings

func NewRetroAchievementsSection

func NewRetroAchievementsSection(
	callback types.ScreenCallback,
	config *storage.Config,
	achievementMgr *achievements.Manager,
) *RetroAchievementsSection

NewRetroAchievementsSection creates a new RetroAchievements section

func (*RetroAchievementsSection) Build

Build creates the RetroAchievements section UI

func (*RetroAchievementsSection) SetAchievements

func (r *RetroAchievementsSection) SetAchievements(mgr *achievements.Manager)

SetAchievements updates the achievement manager reference

func (*RetroAchievementsSection) SetConfig

func (r *RetroAchievementsSection) SetConfig(config *storage.Config)

SetConfig updates the config reference

func (*RetroAchievementsSection) Update

func (r *RetroAchievementsSection) Update()

Update handles keyboard shortcuts for text inputs (Ctrl+A, Ctrl+V, Ctrl+C)

type RewindSection

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

RewindSection manages rewind settings

func NewRewindSection

func NewRewindSection(callback types.ScreenCallback, config *storage.Config, serializeSize int) *RewindSection

NewRewindSection creates a new rewind section. serializeSize is the bytes per save state from SystemInfo.SerializeSize.

func (*RewindSection) Build

func (r *RewindSection) Build(focus types.FocusManager) *widget.Container

Build creates the rewind section UI

func (*RewindSection) SetConfig

func (r *RewindSection) SetConfig(config *storage.Config)

SetConfig updates the config reference

type VideoSection

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

VideoSection manages video settings including shaders

func NewVideoSection

func NewVideoSection(callback types.ScreenCallback, config *storage.Config, systemInfo emucore.SystemInfo) *VideoSection

NewVideoSection creates a new video section

func (*VideoSection) Build

func (v *VideoSection) Build(focus types.FocusManager) *widget.Container

Build creates the video section UI

func (*VideoSection) SetConfig

func (v *VideoSection) SetConfig(config *storage.Config)

SetConfig updates the config reference

func (*VideoSection) SystemInfo added in v0.2.0

func (v *VideoSection) SystemInfo() emucore.SystemInfo

SystemInfo returns the system info for navigation setup

Jump to

Keyboard shortcuts

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