Top Fields Constructors Methods
org.lwjgl.opengl

pack-priv final Class MacOSXNativeKeyboard

extends EventQueue
Class Inheritance
Imports
java.awt.event.KeyEvent, java.util.HashMap, java.nio.ByteBuffer, org.lwjgl.input.Keyboard

Field Summary

Modifier and TypeField and Description
private int
private int
private byte
private long
private final ByteBuffer
event

Event scratch array

private boolean
private final byte[]
private HashMap<Short, Integer>
private ByteBuffer

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public synchronized void
copyEvents(ByteBuffer dest)

Overrides org.lwjgl.opengl.EventQueue.copyEvents.

Copy available events into the specified buffer.
private void
private int
getMappedKeyCode(short key_code)

private synchronized void
handleKey(int key_code, byte state, int character, long nanos)

private void
public void
keyPressed(int key_code, String chars, long nanos)

public void
keyReleased(int key_code, String chars, long nanos)

public void
private native void
private native void
public synchronized void
poll(ByteBuffer key_down_buffer)

public void
putKeyboardEvent(int key_code, byte state, int character, long nanos, boolean repeat)

public void
putKeyEvent(int key_code, byte state, int character, long nanos, boolean repeat)

public void
public void
Inherited from org.lwjgl.opengl.EventQueue:
clearEventsputEvent

Field Detail

deferred_characterback to summary
private int deferred_character
deferred_key_codeback to summary
private int deferred_key_code
deferred_key_stateback to summary
private byte deferred_key_state
deferred_nanosback to summary
private long deferred_nanos
eventback to summary
private final ByteBuffer event

Event scratch array

has_deferred_eventback to summary
private boolean has_deferred_event
key_statesback to summary
private final byte[] key_states
nativeToLwjglMapback to summary
private HashMap<Short, Integer> nativeToLwjglMap
window_handleback to summary
private ByteBuffer window_handle

Constructor Detail

MacOSXNativeKeyboardback to summary
pack-priv MacOSXNativeKeyboard(ByteBuffer window_handle)

Method Detail

copyEventsback to summary
public synchronized void copyEvents(ByteBuffer dest)

Overrides org.lwjgl.opengl.EventQueue.copyEvents.

Doc from org.lwjgl.opengl.EventQueue.copyEvents.

Copy available events into the specified buffer.

flushDeferredEventback to summary
private void flushDeferredEvent()
getMappedKeyCodeback to summary
private int getMappedKeyCode(short key_code)
handleKeyback to summary
private synchronized void handleKey(int key_code, byte state, int character, long nanos)
initKeyboardMappingsback to summary
private void initKeyboardMappings()
keyPressedback to summary
public void keyPressed(int key_code, String chars, long nanos)
keyReleasedback to summary
public void keyReleased(int key_code, String chars, long nanos)
keyTypedback to summary
public void keyTyped(KeyEvent e)
nRegisterKeyListenerback to summary
private native void nRegisterKeyListener(ByteBuffer window_handle)
nUnregisterKeyListenerback to summary
private native void nUnregisterKeyListener(ByteBuffer window_handle)
pollback to summary
public synchronized void poll(ByteBuffer key_down_buffer)
putKeyboardEventback to summary
public void putKeyboardEvent(int key_code, byte state, int character, long nanos, boolean repeat)
putKeyEventback to summary
public void putKeyEvent(int key_code, byte state, int character, long nanos, boolean repeat)
registerback to summary
public void register()
unregisterback to summary
public void unregister()