public class Nes extends Object
Before using the Pi4J library, you need to ensure that the Java VM in configured with access to the following system libraries:
This library depends on the wiringPi native system library. (developed by Gordon Henderson @ http://wiringpi.com/)
Modifier and Type | Field and Description |
---|---|
static int |
MAX_NES_JOYSTICKS |
static int |
NES_A |
static int |
NES_B |
static int |
NES_DOWN |
static int |
NES_LEFT |
static int |
NES_RIGHT |
static int |
NES_SELECT |
static int |
NES_START |
static int |
NES_UP |
static int |
PULSE_TIME |
Modifier and Type | Method and Description |
---|---|
static int |
readNesJoystick(int joystick)
readNesJoystick:
|
static int |
setupNesJoystick(int dPin,
int cPin,
int lPin)
setupNesJoystick:
|
public static final int NES_RIGHT
public static final int NES_LEFT
public static final int NES_DOWN
public static final int NES_UP
public static final int NES_START
public static final int NES_SELECT
public static final int NES_B
public static final int NES_A
public static final int PULSE_TIME
public static final int MAX_NES_JOYSTICKS
public static int setupNesJoystick(int dPin, int cPin, int lPin)
setupNesJoystick:
Create a new NES joystick interface, program the pins, etc.
dPin
- data pincPin
- clock pinlPin
- pin numberpublic static int readNesJoystick(int joystick)
readNesJoystick:
Do a single scan of the NES Joystick.
joystick
- joystick handleCopyright © 2012–2021 Pi4J. All rights reserved.