peripherals

package
v0.16.0 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2022 License: GPL-3.0, GPL-3.0 Imports: 5 Imported by: 0

Documentation

Overview

Package peripherals is a container package for all the various peripherals for the Atari 2600 that are emulated. Most of these are controllers but it also includes the SaveKey for example.

Perhaps most importantly this package provides the Fingerprint() function.

Index

Constants

This section is empty.

Variables

View Source
var Available = []string{"Stick", "Paddle", "Keypad", "Gamepad", "SaveKey"}

Available is the list of peripherals that can feasibly be plugged into the left player port. These are the values that can be returned by the ID() function of the ports.Peripheral implementations in this package.

Functions

func Fingerprint

func Fingerprint(port plugging.PortID, data []byte) ports.NewPeripheral

Fingerprint scans the raw cartridge data for patterns that indicate the requirement of a specific controller type.

The patterns in this file are taken from the Stella project. Specifically the following file (last retreived on 28th January 2022).

https://github.com/stella-emu/stella/blob/76914ded629db887ef612b1e5c9889220808191a/src/emucore/ControllerDetector.cxx

Stella is licenced under the GNU General Public License as published by the Free Software Foundation, version 2 or any later version.

https://github.com/stella-emu/stella/blob/76914ded629db887ef612b1e5c9889220808191a/Copyright.txt

Types

This section is empty.

Directories

Path Synopsis
Package controllers contains the implementations for all the emulated controllers for the VCS.
Package controllers contains the implementations for all the emulated controllers for the VCS.
Package savekey implements the SaveKey external memory card.
Package savekey implements the SaveKey external memory card.

Jump to

Keyboard shortcuts

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