driver

package
v0.0.0-...-67df9fb Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChannelIO

type ChannelIO struct {
	Data   byte
	Target *ChannelIO
	Open   bool
	Master bool

	SendDelay int

	Receive chan byte
}

func (*ChannelIO) FetchByte

func (io *ChannelIO) FetchByte(cycles int) (byte, bool)

func (*ChannelIO) SendByte

func (io *ChannelIO) SendByte(data byte) bool

func (*ChannelIO) SetChannelStatus

func (io *ChannelIO) SetChannelStatus(master bool, status bool)

func (*ChannelIO) SetTarget

func (io *ChannelIO) SetTarget(p *ChannelIO)

type ControllerDriver

type ControllerDriver interface {
	// Initialize controller status
	InitStatus(*byte)
	// Update input status for emulator, called by the emulator
	UpdateInput() bool
	// Update input status for the controller itself
	NewInput([]byte)
}

type DisplayDriver

type DisplayDriver interface {
	Init(*[160][144][3]uint8, string)
	Run(chan bool, func())
}

type KeyMap

type KeyMap struct {
	// Timestamp when the key was last pressed
	LastPress int64
	// Timestamp when the emulator last check the input status
	LastChecked int64
}

type TelnetController

type TelnetController struct {
	Keymap [8]KeyMap
	// contains filtered or unexported fields
}

func (*TelnetController) InitStatus

func (tel *TelnetController) InitStatus(statusPointer *byte)

func (*TelnetController) NewInput

func (tel *TelnetController) NewInput(data []byte)

func (*TelnetController) UpdateInput

func (tel *TelnetController) UpdateInput() bool

Jump to

Keyboard shortcuts

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