|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object gnu.x11.Input
public class Input
X keyboard and pointer.
Nested Class Summary | |
---|---|
class |
Input.InputFocusInfo
Reply of input_focus() |
static class |
Input.KeyboardControl
X keyboard control. |
class |
Input.KeyboardControlInfo
Reply of keyboard_control() |
class |
Input.ModifierMapping
|
class |
Input.PointerControlInfo
Reply of pointer_control() . |
Field Summary | |
---|---|
static int |
ALT_MASK
|
static int |
ASYNC_BOTH
|
static int |
ASYNC_KEYBOARD
|
static int |
ASYNC_POINTER
|
static int |
BUSY
|
static int |
BUTTON1
|
static int |
BUTTON1_MASK
|
static int |
BUTTON2
|
static int |
BUTTON2_MASK
|
static int |
BUTTON3
|
static int |
BUTTON3_MASK
|
static int |
BUTTON4
|
static int |
BUTTON4_MASK
|
static int |
BUTTON5
|
static int |
BUTTON5_MASK
|
static int |
CONTROL_MASK
|
Display |
display
|
static int |
FAILED
|
static java.lang.String[] |
KEYBUT_STRINGS
|
int[] |
keysyms
|
int |
keysyms_per_keycode
|
static int[] |
LOCK_COMBINATIONS
|
static int |
LOCK_MASK
|
int |
max_keycode
|
static int |
META_MASK
|
int |
min_keycode
|
static int |
MOD1_MASK
|
static int |
MOD2_MASK
|
static int |
MOD3_MASK
|
static int |
MOD4_MASK
|
static int |
MOD5_MASK
|
static int |
REPLY_KEYBOARD
|
static int |
REPLY_POINTER
|
static int |
SHIFT_MASK
|
static int |
SUCCESS
|
static int |
SUPER_MASK
|
static int |
SYNC_BOTH
|
static int |
SYNC_KEYBOARD
|
static int |
SYNC_POINTER
|
Constructor Summary | |
---|---|
Input(Display display,
int min_keycode,
int max_keycode)
|
Method Summary | |
---|---|
void |
allow_events(int mode,
int time)
|
void |
change_active_pointer_grab(int event_mask,
Cursor cursor,
int time)
|
void |
change_keyboard_control(Input.KeyboardControl control)
|
void |
change_keyboard_mapping(int first_keycode,
int keysyms_per_keycode,
int[] keysyms)
|
void |
change_pointer_control(boolean do_accel,
boolean do_threshold,
int accel_numerator,
int accel_denominator,
int threshold)
|
static void |
dump_keybut_mask(int m)
|
byte[] |
get_pointer_mapping()
|
Input.InputFocusInfo |
input_focus()
|
Input.KeyboardControlInfo |
keyboard_control()
|
void |
keyboard_mapping()
|
int |
keycode_to_keysym(int keycode,
int keystate)
Maps a keycode to a keysym. |
int |
keycode_to_keysym(int keycode,
int keystate,
boolean ignore_modifiers)
Maps a keycode to a keysym. |
int |
keysym_to_keycode(int keysym)
|
Input.ModifierMapping |
modifier_mapping()
|
Input.PointerControlInfo |
pointer_control()
|
byte[] |
query_keymap()
|
int |
set_modifier_mapping(int keycodes_per_modifier,
byte[] keycodes)
|
int |
set_pointer_mapping(byte[] map)
|
void |
ungrab_keyboard()
Input#ungrab_keyboard(int) |
void |
ungrab_keyboard(int time)
|
void |
ungrab_pointer(int time)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int SHIFT_MASK
public static final int LOCK_MASK
public static final int CONTROL_MASK
public static final int MOD1_MASK
public static final int MOD2_MASK
public static final int MOD3_MASK
public static final int MOD4_MASK
public static final int MOD5_MASK
public static final int BUTTON1_MASK
public static final int BUTTON2_MASK
public static final int BUTTON3_MASK
public static final int BUTTON4_MASK
public static final int BUTTON5_MASK
public static final int META_MASK
public static final int ALT_MASK
public static final int SUPER_MASK
public static final int BUTTON1
public static final int BUTTON2
public static final int BUTTON3
public static final int BUTTON4
public static final int BUTTON5
public static final int[] LOCK_COMBINATIONS
public Display display
public int min_keycode
public int max_keycode
public int keysyms_per_keycode
public int[] keysyms
public static final int ASYNC_POINTER
public static final int SYNC_POINTER
public static final int REPLY_POINTER
public static final int ASYNC_KEYBOARD
public static final int SYNC_KEYBOARD
public static final int REPLY_KEYBOARD
public static final int ASYNC_BOTH
public static final int SYNC_BOTH
public static final int SUCCESS
public static final int BUSY
public static final int FAILED
public static final java.lang.String[] KEYBUT_STRINGS
Constructor Detail |
---|
public Input(Display display, int min_keycode, int max_keycode)
Method Detail |
---|
public void ungrab_pointer(int time)
time
- possible: Display.CURRENT_TIME
public void change_active_pointer_grab(int event_mask, Cursor cursor, int time)
cursor
- possible: Cursor.NONE
time
- possible: Display.CURRENT_TIME
public void ungrab_keyboard(int time)
time
- possible: Display.CURRENT_TIME
public void allow_events(int mode, int time)
mode
- valid:
ASYNC_POINTER
,
SYNC_POINTER
,
REPLY_POINTER
,
ASYNC_KEYBOARD
,
SYNC_KEYBOARD
,
REPLY_KEYBOARD
,
ASYNC_BOTH
,
SYNC_BOTH
time
- possible: Display.CURRENT_TIME
public Input.InputFocusInfo input_focus()
public byte[] query_keymap()
Enum#next1()
public void change_keyboard_mapping(int first_keycode, int keysyms_per_keycode, int[] keysyms)
public void keyboard_mapping()
public void change_keyboard_control(Input.KeyboardControl control)
public Input.KeyboardControlInfo keyboard_control()
public void change_pointer_control(boolean do_accel, boolean do_threshold, int accel_numerator, int accel_denominator, int threshold)
public Input.PointerControlInfo pointer_control()
public int set_pointer_mapping(byte[] map)
SUCCESS
,
BUSY
public byte[] get_pointer_mapping()
public int set_modifier_mapping(int keycodes_per_modifier, byte[] keycodes)
SUCCESS
,
BUSY
,
FAILED
public Input.ModifierMapping modifier_mapping()
Enum#next1()
public static void dump_keybut_mask(int m)
public int keycode_to_keysym(int keycode, int keystate)
keycode
- the keycodekeystate
- the modifiers
public int keycode_to_keysym(int keycode, int keystate, boolean ignore_modifiers)
ignore_modifiers
is
true
then this returns the plain keysymbol, independent
of the modifiers. Otherwise it returns the real symbol.
keycode
- the keycodekeystate
- the modifiersignore_modifiers
- true
for returning plain
keysyms, false
for taking the modifiers
into account
public int keysym_to_keycode(int keysym)
public void ungrab_keyboard()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |