peripherals

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: May 7, 2026 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GroundedTIA added in v0.8.0

type GroundedTIA interface {
	TIA
	Grounded() bool
}

type Memory

type Memory interface {
	LastReadIsRIOT() bool
}

type Paddles

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

Paddles represent a pair of paddles that plug into a single player port

func NewPaddles

func NewPaddles(r RIOT, t GroundedTIA, portRight bool) *Paddles

func (*Paddles) IsAnalogue

func (pdl *Paddles) IsAnalogue() bool

func (*Paddles) IsController

func (pdl *Paddles) IsController() bool

func (*Paddles) Reset

func (pdl *Paddles) Reset()

func (*Paddles) Tick

func (pdl *Paddles) Tick()

func (*Paddles) Unplug

func (pdl *Paddles) Unplug()

func (*Paddles) Update

func (pdl *Paddles) Update(inp gui.Input) error

type Panel

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

func NewPanel

func NewPanel(r RIOT) *Panel

func (*Panel) Reset

func (p *Panel) Reset()

func (*Panel) Unplug

func (p *Panel) Unplug()

func (*Panel) Update

func (p *Panel) Update(inp gui.Input) error

type Quadtari added in v0.8.0

type Quadtari struct {
	A peripheral
	B peripheral
	// contains filtered or unexported fields
}

func NewQuadtari added in v0.8.0

func NewQuadtari(r RIOT, tia GroundedTIA) *Quadtari

func (*Quadtari) IsAnalogue added in v0.8.0

func (q *Quadtari) IsAnalogue() bool

func (*Quadtari) IsController added in v0.8.0

func (q *Quadtari) IsController() bool

func (*Quadtari) Reset added in v0.8.0

func (q *Quadtari) Reset()

func (*Quadtari) SetInputFilter added in v0.8.0

func (q *Quadtari) SetInputFilter(inputSource gui.InputSource, secondary bool)

func (*Quadtari) Tick added in v0.8.0

func (q *Quadtari) Tick()

func (*Quadtari) Unplug added in v0.8.0

func (q *Quadtari) Unplug()

func (*Quadtari) Update added in v0.8.0

func (q *Quadtari) Update(inp gui.Input) error

type RIOT

type RIOT interface {
	PortWrite(reg riot.Register, data uint8, mask uint8) error
	PortRead(reg riot.Register) (uint8, error)
}

type Stick

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

func NewStick

func NewStick(r RIOT, t TIA, portRight bool, twoButtons bool) *Stick

func (*Stick) Button added in v0.8.0

func (st *Stick) Button() (tia.Register, bool)

func (*Stick) IsAnalogue

func (st *Stick) IsAnalogue() bool

func (*Stick) IsController

func (st *Stick) IsController() bool

func (*Stick) Reset

func (st *Stick) Reset()

func (*Stick) SWCHA added in v0.8.0

func (st *Stick) SWCHA() (uint8, uint8)

func (*Stick) SetInputFilter added in v0.8.0

func (st *Stick) SetInputFilter(inputSource gui.InputSource, primary bool)

func (*Stick) Tick

func (st *Stick) Tick()

func (*Stick) Unplug

func (st *Stick) Unplug()

func (*Stick) Update

func (st *Stick) Update(inp gui.Input) error

type TIA

type TIA interface {
	PortWrite(reg tia.Register, data uint8, mask uint8) error
}

type Trakball

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

https://www.atarimania.com/documents/Atari-CX22-Trakball-Field-Service-Manual.pdf https://atarimuseum.ctrl-alt-rees.com/ahs_archives/archives/archives-techdocs-7800.htm

func NewTrakball

func NewTrakball(r RIOT, t TIA, m Memory, portRight bool) *Trakball

func (*Trakball) IsAnalogue

func (tb *Trakball) IsAnalogue() bool

func (*Trakball) IsController

func (tb *Trakball) IsController() bool

func (*Trakball) Reset

func (tb *Trakball) Reset()

func (*Trakball) Tick

func (tb *Trakball) Tick()

func (*Trakball) Unplug

func (tb *Trakball) Unplug()

func (*Trakball) Update

func (tb *Trakball) Update(inp gui.Input) error

Directories

Path Synopsis
Package savekey implements the SaveKey external memory card.
Package savekey implements the SaveKey external memory card.
i2c
Package i2c facilitates the reading of i2c data for the SaveKey (and AtariVox) peripherals.
Package i2c facilitates the reading of i2c data for the SaveKey (and AtariVox) peripherals.

Jump to

Keyboard shortcuts

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