Mac OS X port, second try :)

This commit is contained in:
Elias Naur 2004-11-11 16:03:19 +00:00
parent 4e35eea9ca
commit 1ec70842d0
22 changed files with 1036 additions and 1854 deletions

View file

@ -197,6 +197,8 @@ public class Keyboard {
public static final int STATE_OFF = 1;
public static final int STATE_UNKNOWN = 2;
public final static int KEYBOARD_SIZE = 256;
/** Buffer size in events */
private final static int BUFFER_SIZE = 50;
/** Event size in elements */
@ -237,7 +239,7 @@ public class Keyboard {
private static boolean created;
/** The keys status from the last poll */
private static final ByteBuffer keyDownBuffer = BufferUtils.createByteBuffer(256);
private static final ByteBuffer keyDownBuffer = BufferUtils.createByteBuffer(KEYBOARD_SIZE);
/**
* The key events from the last read: a sequence of pairs of key number,