Top Fields Constructors Methods
org.lwjgl.opengl

pack-priv final Class LinuxKeyboard

extends Object
Class Inheritance
Imports
java.nio.ByteBuffer, .CharBuffer, java.nio.charset.Charset, .CharsetDecoder, org.lwjgl.BufferUtils, .LWJGLUtil, org.lwjgl.input.Keyboard

Field Summary

Modifier and TypeField and Description
private final int
private final CharBuffer
private final ByteBuffer
private int
private byte
private int
private long
private final EventQueue
private boolean
private final byte[]
private static final int
private static final int
private static final long
private final int
private final ByteBuffer
private static final long
private final int
private final int
private static final long
private final int[]
private final ByteBuffer
private final CharsetDecoder
private final long
private final long
private static final int
private static final int

Constructor Summary

AccessConstructor and Description
pack-priv
LinuxKeyboard(long display, long window)

Method Summary

Modifier and TypeMethod and Description
private static native ByteBuffer
private static native void
closeIM(long xim)

private static native long
createIC(long xim, long window)

public void
destroy(long display)

private static native void
destroyIC(long xic)

public boolean
private void
private static native void
freeModifierMapping(long modifier_map)

private int
getKeycode(long event_ptr, int event_state)

private static byte
getKeyState(int event_type)

private static long
getKeySym(long event_ptr, int group, int index)

private static native int
getMaxKeyPerMod(long modifier_map)

private static native long
getModifierMapping(long display)

private void
handleKeyEvent(long event_ptr, long millis, int event_type, int event_keycode, int event_state)

private static boolean
isKeypadKeysym(long keysym)

private static boolean
private static native long
keycodeToKeySym(long display, int key_code)

private static native long
lookupKeysym(long event_ptr, int index)

private static native int
lookupModifierMap(long modifier_map, int index)

private static native int
lookupString(long event_ptr, ByteBuffer buffer, ByteBuffer compose_status)

private int
lookupString(long event_ptr, int[] translation_buffer)

private int
lookupStringISO88591(long event_ptr, int[] translation_buffer)

private int
lookupStringUnicode(long event_ptr, int[] translation_buffer)

private long
mapEventToKeySym(long event_ptr, int event_state)

private static native boolean
nSetDetectableKeyRepeat(long display, boolean enabled)

private static native long
openIM(long display)

public void
poll(ByteBuffer keyDownBuffer)

private void
putKeyboardEvent(int keycode, byte state, int ch, long nanos, boolean repeat)

public void
read(ByteBuffer buffer)

pack-priv void
releaseAll()

This is called when the window loses focus: we release all currently pressed keys.

private static void
setDetectableKeyRepeat(long display, boolean enabled)

private static native void
setupIMEventMask(long display, long window, long xic)

private static native long
toUpper(long keysym)

private void
translateEvent(long event_ptr, int keycode, byte key_state, long nanos, boolean repeat)

private static native int
utf8LookupString(long xic, long event_ptr, ByteBuffer buffer, int pos, int size)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

caps_lock_maskback to summary
private final int caps_lock_mask
char_bufferback to summary
private final CharBuffer char_buffer
compose_statusback to summary
private final ByteBuffer compose_status
deferred_event_keycodeback to summary
private int deferred_event_keycode
deferred_key_stateback to summary
private byte deferred_key_state
deferred_keycodeback to summary
private int deferred_keycode
deferred_nanosback to summary
private long deferred_nanos
event_queueback to summary
private final EventQueue event_queue
has_deferred_eventback to summary
private boolean has_deferred_event
key_down_bufferback to summary
private final byte[] key_down_buffer
KEYBOARD_BUFFER_SIZEback to summary
private static final int KEYBOARD_BUFFER_SIZE
LockMapIndexback to summary
private static final int LockMapIndex
LockMaskback to summary
private static final long LockMask
modeswitch_maskback to summary
private final int modeswitch_mask
native_translation_bufferback to summary
private final ByteBuffer native_translation_buffer
NoSymbolback to summary
private static final long NoSymbol
numlock_maskback to summary
private final int numlock_mask
shift_lock_maskback to summary
private final int shift_lock_mask
ShiftMaskback to summary
private static final long ShiftMask
temp_translation_bufferback to summary
private final int[] temp_translation_buffer
tmp_eventback to summary
private final ByteBuffer tmp_event
utf8_decoderback to summary
private final CharsetDecoder utf8_decoder
xicback to summary
private final long xic
ximback to summary
private final long xim
XLookupBothback to summary
private static final int XLookupBoth
XLookupCharsback to summary
private static final int XLookupChars

Constructor Detail

LinuxKeyboardback to summary
pack-priv LinuxKeyboard(long display, long window)

Method Detail

allocateComposeStatusback to summary
private static native ByteBuffer allocateComposeStatus()
closeIMback to summary
private static native void closeIM(long xim)
createICback to summary
private static native long createIC(long xim, long window)
destroyback to summary
public void destroy(long display)
destroyICback to summary
private static native void destroyIC(long xic)
filterEventback to summary
public boolean filterEvent(LinuxEvent event)
flushDeferredEventback to summary
private void flushDeferredEvent()
freeModifierMappingback to summary
private static native void freeModifierMapping(long modifier_map)
getKeycodeback to summary
private int getKeycode(long event_ptr, int event_state)
getKeyStateback to summary
private static byte getKeyState(int event_type)
getKeySymback to summary
private static long getKeySym(long event_ptr, int group, int index)
getMaxKeyPerModback to summary
private static native int getMaxKeyPerMod(long modifier_map)
getModifierMappingback to summary
private static native long getModifierMapping(long display)
handleKeyEventback to summary
private void handleKeyEvent(long event_ptr, long millis, int event_type, int event_keycode, int event_state)
isKeypadKeysymback to summary
private static boolean isKeypadKeysym(long keysym)
isNoSymbolOrVendorSpecificback to summary
private static boolean isNoSymbolOrVendorSpecific(long keysym)
keycodeToKeySymback to summary
private static native long keycodeToKeySym(long display, int key_code)
lookupKeysymback to summary
private static native long lookupKeysym(long event_ptr, int index)
lookupModifierMapback to summary
private static native int lookupModifierMap(long modifier_map, int index)
lookupStringback to summary
private static native int lookupString(long event_ptr, ByteBuffer buffer, ByteBuffer compose_status)
lookupStringback to summary
private int lookupString(long event_ptr, int[] translation_buffer)
lookupStringISO88591back to summary
private int lookupStringISO88591(long event_ptr, int[] translation_buffer)
lookupStringUnicodeback to summary
private int lookupStringUnicode(long event_ptr, int[] translation_buffer)
mapEventToKeySymback to summary
private long mapEventToKeySym(long event_ptr, int event_state)
nSetDetectableKeyRepeatback to summary
private static native boolean nSetDetectableKeyRepeat(long display, boolean enabled)
openIMback to summary
private static native long openIM(long display)
pollback to summary
public void poll(ByteBuffer keyDownBuffer)
putKeyboardEventback to summary
private void putKeyboardEvent(int keycode, byte state, int ch, long nanos, boolean repeat)
readback to summary
public void read(ByteBuffer buffer)
releaseAllback to summary
pack-priv void releaseAll()

This is called when the window loses focus: we release all currently pressed keys.

setDetectableKeyRepeatback to summary
private static void setDetectableKeyRepeat(long display, boolean enabled)
setupIMEventMaskback to summary
private static native void setupIMEventMask(long display, long window, long xic)
toUpperback to summary
private static native long toUpper(long keysym)
translateEventback to summary
private void translateEvent(long event_ptr, int keycode, byte key_state, long nanos, boolean repeat)
utf8LookupStringback to summary
private static native int utf8LookupString(long xic, long event_ptr, ByteBuffer buffer, int pos, int size)