|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.monkeycoder.monkeynes.hardware.NesJoypad
This is the Original NES Joypad, a small square Joypad
with 4-directional D-Pad, B and A buttons, and Start and
Select buttons.
Originally part of the MonkeyNES project.
| Field Summary | |
static int |
BUTTON_A
|
static int |
BUTTON_B
|
static int |
BUTTON_COUNT
|
static int |
BUTTON_DPAD_DOWN
|
static int |
BUTTON_DPAD_LEFT
|
static int |
BUTTON_DPAD_RIGHT
|
static int |
BUTTON_DPAD_UP
|
static int |
BUTTON_SELECT
|
static int |
BUTTON_START
|
| Fields inherited from interface com.monkeycoder.monkeynes.hardware.NesController |
TYPE_JOYPAD, TYPE_NONE |
| Constructor Summary | |
NesJoypad()
Creates a new NesJoypad. |
|
| Method Summary | |
void |
clearStrobe()
Clears the strobe on this controller. |
int |
getNextButtonValue()
Gets the value of the next button. |
int |
getType()
Returns the type of this controller. |
String |
getTypeName()
Returns the name of this type of controller. |
void |
resetStrobe()
Resets the strobe on this controller. |
void |
setButtonValue(int inButton,
int inValue)
Sets the value of a specific button. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int BUTTON_A
public static final int BUTTON_B
public static final int BUTTON_SELECT
public static final int BUTTON_START
public static final int BUTTON_DPAD_UP
public static final int BUTTON_DPAD_DOWN
public static final int BUTTON_DPAD_LEFT
public static final int BUTTON_DPAD_RIGHT
public static final int BUTTON_COUNT
| Constructor Detail |
public NesJoypad()
| Method Detail |
public int getType()
NesController
getType in interface NesControllerpublic String getTypeName()
NesController
getTypeName in interface NesController
public void setButtonValue(int inButton,
int inValue)
NesController
setButtonValue in interface NesControllerinButton - The button whose value is being set.inValue - The value being set.public void resetStrobe()
NesController
resetStrobe in interface NesControllerpublic void clearStrobe()
NesController
clearStrobe in interface NesControllerpublic int getNextButtonValue()
NesController
getNextButtonValue in interface NesController
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||