nesgo

package
v0.0.0-...-7d09a16 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2020 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Emulator

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

Emulator represents a NES emulator handles the user input

func NewEmulator

func NewEmulator(window gui.GameWindow, console *nes.Console) *Emulator

NewEmulator creates a new instance of the emulator

func (*Emulator) KeyCallback

func (e *Emulator) KeyCallback(key int, isPress bool)

KeyCallback provides the input handler to interact with the emulator

func (*Emulator) Step

func (e *Emulator) Step()

Step makes the console step forward a frame

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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