shared

package
v2.8.0 Latest Latest
Warning

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

Go to latest
Published: Jan 1, 2026 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SchemeSteam      = "steam"
	SchemeFlashpoint = "flashpoint"
	SchemeLaunchBox  = "launchbox"
	SchemeScummVM    = "scummvm"
	SchemeLutris     = "lutris"
	SchemeHeroic     = "heroic"
	SchemeGOG        = "gog"
)

Custom URI scheme constants for Zaparoo virtual paths. These schemes are used to create virtual paths for media that doesn't have traditional file paths (e.g., Steam games, Kodi media, LaunchBox collections, etc.).

View Source
const (
	SchemeKodiMovie   = "kodi-movie"
	SchemeKodiEpisode = "kodi-episode"
	SchemeKodiSong    = "kodi-song"
	SchemeKodiAlbum   = "kodi-album"
	SchemeKodiArtist  = "kodi-artist"
	SchemeKodiShow    = "kodi-show"
)

Kodi URI scheme constants for Kodi media library items.

View Source
const (
	SchemeHTTP  = "http"
	SchemeHTTPS = "https"
)

Standard URI schemes that should have URL decoding applied.

Variables

This section is empty.

Functions

func IsCustomScheme

func IsCustomScheme(scheme string) bool

IsCustomScheme checks if the given scheme is a registered Zaparoo custom URI scheme

func IsStandardSchemeForDecoding

func IsStandardSchemeForDecoding(scheme string) bool

IsStandardSchemeForDecoding checks if the given scheme is a standard URI scheme that should have URL decoding

func ShouldDecodeURIScheme

func ShouldDecodeURIScheme(scheme string) bool

ShouldDecodeURIScheme checks if the given scheme should have URL decoding applied Returns true for Zaparoo custom schemes and standard web schemes (http/https)

func StandardSchemesForDecoding

func StandardSchemesForDecoding() []string

StandardSchemesForDecoding returns a slice of standard URI schemes that should have URL decoding

func ValidCustomSchemes

func ValidCustomSchemes() []string

ValidCustomSchemes returns a slice of all registered Zaparoo custom URI schemes

Types

type LinuxInput added in v2.7.1

type LinuxInput struct {
	NewKeyboard func(time.Duration) (linuxinput.Keyboard, error)
	NewGamepad  func(time.Duration) (linuxinput.Gamepad, error)
	// contains filtered or unexported fields
}

LinuxInput manages virtual keyboard and gamepad devices for Linux platforms. Embed this struct in platform implementations that need input device support.

func (*LinuxInput) CloseDevices added in v2.7.1

func (l *LinuxInput) CloseDevices()

CloseDevices closes keyboard and gamepad devices.

func (*LinuxInput) GamepadPress added in v2.7.1

func (l *LinuxInput) GamepadPress(name string) error

GamepadPress sends a gamepad button press.

func (*LinuxInput) InitDevices added in v2.7.1

func (l *LinuxInput) InitDevices(cfg *config.Instance, gamepadEnabledByDefault bool) error

InitDevices initializes keyboard and optionally gamepad based on config. gamepadEnabledByDefault controls the default when config doesn't specify.

func (*LinuxInput) KeyboardPress added in v2.7.1

func (l *LinuxInput) KeyboardPress(arg string) error

KeyboardPress sends a keyboard key press.

Directories

Path Synopsis
Package esde provides shared utilities for EmulationStation Desktop Edition based platforms including ES-DE, Batocera ES, and RetroBat.
Package esde provides shared utilities for EmulationStation Desktop Edition based platforms including ES-DE, Batocera ES, and RetroBat.
procscanner
Package procscanner provides a shared process scanner for monitoring multiple types of processes with a single /proc scan.
Package procscanner provides a shared process scanner for monitoring multiple types of processes with a single /proc scan.
proctracker
Package proctracker provides process exit tracking using pidfd_open on Linux 5.3+.
Package proctracker provides process exit tracking using pidfd_open on Linux 5.3+.
steamtracker
Package steamtracker provides Steam game lifecycle tracking on Linux.
Package steamtracker provides Steam game lifecycle tracking on Linux.

Jump to

Keyboard shortcuts

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