public class DefaultCharBindingMap extends Object implements CharBindingMap<Keyboard.KeyboardButton,Keyboard.KeyboardModifier>
| Constructor and Description |
|---|
DefaultCharBindingMap()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addChar(char c,
Keyboard.KeyboardButton key,
Keyboard.KeyboardModifier... modifiers)
Adds a char to supported.
|
Keyboard.KeyboardButton |
getCharKey(char c)
Returns the code of the primary key used to type a symbol.
|
Keyboard.KeyboardModifier[] |
getCharModifiers(char c)
Returns the modifiers that should be pressed to type a symbol.
|
char[] |
getSupportedChars()
Returns an array of all supported chars.
|
void |
removeChar(char c)
Removes a char from supported.
|
public Keyboard.KeyboardButton getCharKey(char c)
getCharKey in interface CharBindingMap<Keyboard.KeyboardButton,Keyboard.KeyboardModifier>c - Character.CharBindingMap.getCharKey(char)public Keyboard.KeyboardModifier[] getCharModifiers(char c)
getCharModifiers in interface CharBindingMap<Keyboard.KeyboardButton,Keyboard.KeyboardModifier>c - Character.CharBindingMap.getCharModifiers(char),
Keyboard.KeyboardModifierpublic char[] getSupportedChars()
public void removeChar(char c)
c - Symbol code.public void addChar(char c,
Keyboard.KeyboardButton key,
Keyboard.KeyboardModifier... modifiers)
c - Symbol code.key - key code.modifiers - a combination of InputEvent MASK fields.Copyright © 2018. All rights reserved.