Versions in this module Expand all Collapse all v0 v0.3.0 Feb 26, 2026 Changes in this version + func DisplayAspectRatio(width, height int, par float64) float64 type SystemInfo + PixelAspectRatio float64 v0.2.1 Feb 24, 2026 Changes in this version type SystemInfo + BigEndianMemory bool v0.2.0 Feb 21, 2026 Changes in this version + type CoreOptionCategory int + const CoreOptionCategoryAudio + const CoreOptionCategoryCore + const CoreOptionCategoryInput + const CoreOptionCategoryVideo v0.1.0 Feb 20, 2026 Changes in this version + const ButtonDown + const ButtonLeft + const ButtonRight + const ButtonUp + const MemorySaveRAM + const MemorySystemRAM + type BatterySaver interface + GetSRAM func() []byte + HasSRAM func() bool + SetSRAM func(data []byte) + type Button struct + DefaultKey string + DefaultPad string + ID int + Name string + type CoreFactory interface + CreateEmulator func(rom []byte, region Region) (Emulator, error) + DetectRegion func(rom []byte) (Region, bool) + SystemInfo func() SystemInfo + type CoreOption struct + Category string + Default string + Description string + Key string + Label string + Max int + Min int + PerGame bool + Step int + Type CoreOptionType + Values []string + type CoreOptionType int + const CoreOptionBool + const CoreOptionRange + const CoreOptionSelect + type Emulator interface + Close func() + GetActiveHeight func() int + GetAudioSamples func() []int16 + GetFramebuffer func() []byte + GetFramebufferStride func() int + GetRegion func() Region + GetTiming func() Timing + RunFrame func() + SetInput func(player int, buttons uint32) + SetOption func(key string, value string) + SetRegion func(region Region) + type MemoryInspector interface + ReadMemory func(addr uint32, buf []byte) uint32 + type MemoryMapper interface + MemoryMap func() []MemoryRegion + ReadRegion func(regionType int) []byte + WriteRegion func(regionType int, data []byte) + type MemoryRegion struct + Size int + Type int + type Region int + const RegionNTSC + const RegionPAL + func (r Region) String() string + type SaveStater interface + Deserialize func(data []byte) error + Serialize func() ([]byte, error) + type SystemInfo struct + AspectRatio float64 + Buttons []Button + ConsoleID int + ConsoleName string + CoreName string + CoreOptions []CoreOption + CoreVersion string + DataDirName string + Extensions []string + MaxScreenHeight int + Name string + Players int + RDBName string + SampleRate int + ScreenWidth int + SerializeSize int + ThumbnailRepo string + type Timing struct + FPS int + Scanlines int