|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectfi.hut.tml.xsmiles.mlfc.io.directdevice.DirectDevice
fi.hut.tml.xsmiles.mlfc.io.directdevice.DirectDeviceWin
Win32 platform DirectDevice class to read joystick, mouse and keyboard. Uses native methods (DirectInput) to read the values.
| Field Summary |
| Fields inherited from class fi.hut.tml.xsmiles.mlfc.io.directdevice.DirectDevice |
button, key, oldbutton, oldkey, oldrx, oldry, oldrz, oldx, oldy, oldz, rx, ry, rz, x, y, z |
| Constructor Summary | |
DirectDeviceWin()
|
|
| Method Summary | |
static boolean |
getJoystickValues(int[] joystickValues)
Get device values in a big array of integers. |
static boolean |
getKeyboardValues(int[] keyboardValues)
Get device values in a big array of integers. |
static int |
getTest()
Test |
static boolean |
isTest(int id)
Test |
protected void |
sample()
Sample joystick values in Win32 dependent way - use DirectInput. |
| Methods inherited from class fi.hut.tml.xsmiles.mlfc.io.directdevice.DirectDevice |
addJoystickListener, addKeyboardListener, createInstance, getButton, getKeyboard, getRX, getRY, getRZ, getSamplingRate, getX, getY, getZ, notifyJoystickListeners, notifyKeyboardListeners, removeJoystickListener, removeKeyboardListener, run, setSamplingRate |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public DirectDeviceWin()
| Method Detail |
public static final boolean getJoystickValues(int[] joystickValues)
public static final boolean getKeyboardValues(int[] keyboardValues)
public static final int getTest()
public static boolean isTest(int id)
protected void sample()
sample in class DirectDevice
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||