public class HEventGroup extends Object
| Constructor and Description |
|---|
HEventGroup()
Constructor for an empty event group
|
| Modifier and Type | Method and Description |
|---|---|
void |
addAllArrowKeys()
Adds the key codes for the arrow keys (VK_LEFT, VK_RIGHT, VK_UP,
VK_DOWN).
|
void |
addAllColourKeys()
Adds the key codes for the colour keys (VK_COLORED_KEY_0,
VK_COLORED_KEY_1, VK_COLORED_KEY_2, VK_COLORED_KEY_3).
|
void |
addAllNumericKeys()
Adds the key codes for the numeric keys (VK_0, VK_1, VK_2, VK_3,
VK_4, VK_5, VK_6, VK_7, VK_8, VK_9).
|
void |
addKey(int keycode)
A shortcut to create a new key event type entry in the group.
|
int[] |
getKeyEvents()
Return the key codes contained in this event group.
|
void |
removeAllArrowKeys()
Removes the key codes for the arrow keys (VK_LEFT, VK_RIGHT, VK_UP,
VK_DOWN).
|
void |
removeAllColourKeys()
Removes the key codes for the colour keys (VK_COLORED_KEY_0,
VK_COLORED_KEY_1, VK_COLORED_KEY_2, VK_COLORED_KEY_3).
|
void |
removeAllNumericKeys()
Remove the key codes for the numeric keys (VK_0, VK_1, VK_2, VK_3,
VK_4, VK_5, VK_6, VK_7, VK_8, VK_9).
|
void |
removeKey(int keycode)
The method to remove a key from the group.
|
public void addKey(int keycode)
keycode - the key code.public void removeKey(int keycode)
keycode - the key code.public void addAllNumericKeys()
public void addAllColourKeys()
public void addAllArrowKeys()
public void removeAllNumericKeys()
public void removeAllColourKeys()
public void removeAllArrowKeys()
public int[] getKeyEvents()
Copyright © 2012 code4tv.com. All Rights Reserved.