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 ¶
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).
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. |