jaune.target.gb
Class GB
java.lang.Object
|
+--jaune.target.gb.GB
- public final class GB
- extends java.lang.Object
Method Summary |
static byte |
getDIVReg()
Returns the value of the div register. |
static java.lang.String |
gets()
|
static int |
joypad()
Reads and returns the current state of the joypad. |
static void |
puts(java.lang.String s)
|
static int |
waitpad(int mask)
Waits until all the keys given in mask are pressed. |
static void |
waitpadup()
Waits for the pad and all buttons to be released. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GB
public GB()
gets
public static final java.lang.String gets()
puts
public static final void puts(java.lang.String s)
joypad
public static final int joypad()
- Reads and returns the current state of the joypad.
Follows Nintendo's guidelines for reading the pad.
Return value is an OR of J_*
- See Also:
J_START
waitpad
public static final int waitpad(int mask)
- Waits until all the keys given in mask are pressed.
Normally only used for checking one key, but it will
support many, even J_LEFT at the same time as J_RIGHT :)
- See Also:
waitpadup
public static final void waitpadup()
- Waits for the pad and all buttons to be released.
getDIVReg
public static final byte getDIVReg()
- Returns the value of the div register.