Documentation
¶
Index ¶
- type Platform
- func (p *Platform) ClearTrackedProcessMedia(proc *os.Process) bool
- func (*Platform) ConsoleManager() platforms.ConsoleManager
- func (*Platform) ForwardCmd(_ *platforms.CmdEnv) (platforms.CmdResult, error)
- func (*Platform) GamepadPress(_ string) error
- func (*Platform) ID() string
- func (*Platform) InputCoverage() platforms.InputClass
- func (*Platform) KeyboardPress(_ string) error
- func (p *Platform) LaunchMedia(cfg *config.Instance, path string, launcher *platforms.Launcher, ...) error
- func (*Platform) LaunchSystem(_ *config.Instance, _ string) error
- func (p *Platform) Launchers(cfg *config.Instance) []platforms.Launcher
- func (*Platform) LookupMapping(_ *tokens.Token) (string, bool)
- func (*Platform) ManagedByPackageManager() bool
- func (*Platform) ReturnToMenu() error
- func (*Platform) RootDirs(cfg *config.Instance) []string
- func (*Platform) ScanHook(_ *tokens.Token) error
- func (*Platform) Scrapers(_ *config.Instance) map[string]platforms.Scraper
- func (*Platform) Screenshot() (*platforms.ScreenshotResult, error)
- func (p *Platform) SetTrackedProcess(proc *os.Process)
- func (*Platform) Settings() platforms.Settings
- func (p *Platform) StartPost(_ context.Context, _ *config.Instance, _ platforms.LauncherContextManager, ...) error
- func (*Platform) StartPre(_ *config.Instance) error
- func (*Platform) Stop() error
- func (p *Platform) StopActiveLauncher(_ platforms.StopIntent) error
- func (p *Platform) SupportedReaders(cfg *config.Instance) []readers.Reader
- func (p *Platform) WaitTrackedProcess(proc *os.Process) error
- func (*Platform) WatchInput(ctx context.Context, responsive bool, onActivity func()) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Platform ¶
type Platform struct {
// contains filtered or unexported fields
}
func (*Platform) ClearTrackedProcessMedia ¶ added in v2.21.0
ClearTrackedProcessMedia clears active media only if proc exited without a newer process being tracked, so a late exit never clears a newer launch.
func (*Platform) ConsoleManager ¶ added in v2.7.0
func (*Platform) ConsoleManager() platforms.ConsoleManager
func (*Platform) ForwardCmd ¶
func (*Platform) GamepadPress ¶
func (*Platform) InputCoverage ¶ added in v2.21.0
func (*Platform) InputCoverage() platforms.InputClass
InputCoverage implements platforms.InputActivitySource.
func (*Platform) KeyboardPress ¶
func (*Platform) LaunchMedia ¶
func (*Platform) ManagedByPackageManager ¶ added in v2.10.0
func (*Platform) ReturnToMenu ¶ added in v2.7.0
func (*Platform) Screenshot ¶ added in v2.10.0
func (*Platform) Screenshot() (*platforms.ScreenshotResult, error)
func (*Platform) SetTrackedProcess ¶ added in v2.6.1
func (*Platform) StopActiveLauncher ¶
func (p *Platform) StopActiveLauncher(_ platforms.StopIntent) error
func (*Platform) SupportedReaders ¶
func (*Platform) WaitTrackedProcess ¶ added in v2.21.0
WaitTrackedProcess waits for and reaps proc. It returns an error when proc is no longer the tracked process, for example after Core stopped it.
Click to show internal directories.
Click to hide internal directories.