gui

package
v0.0.0-...-ec4120d Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2019 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Audio

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

func NewAudio

func NewAudio() *Audio

func (*Audio) Callback

func (a *Audio) Callback(out []float32)

func (*Audio) Start

func (a *Audio) Start() error

func (*Audio) Stop

func (a *Audio) Stop() error

type GUI

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

func NewGUI

func NewGUI(console *nes.Console) *GUI

NewGUI returns using the given console.

func (*GUI) Run

func (g *GUI) Run() error

Run opens a small 256x240px (times scale) GUI window and runs the console.

Input is via the arrow keys, enter, space, Z, X. Pressing S saves a screenshot to "screenshot.png".

The function terminates when the Q key is pressed, or an error occurs.

Jump to

Keyboard shortcuts

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