KeyStroke s to Command s
This class may be used to modify input mappings according to the look and feel or other changes. Mouse buttons are mapped to Key s by LEFT_MOUSE_KEY MIDDLE_MOUSE_KEY and RIGHT_MOUSE_KEY.
Public Member Functions | |
| void | add (const Key &k, const Mod &m, const Command &c) |
adds a mapping from k with modifiers m to c. | |
| void | add (const KeyStroke &k, const Command &c) |
calls InputMap::add(Key&,Mod&,Command&) | |
| void | clear () |
| clears this map | |
| Command | getCommand (const KeyStroke &k) const |
looks up the mapping for k | |
| InputMap (int num,...) | |
| creates a map with initial mappings | |
| InputMap () | |
| creates an empty map | |
| void | remove (const Command &) |
| removes all mappings to the given command | |
| void | remove (const KeyStroke &k) |
| removes a mapping | |
Static Public Member Functions | |
| static Mapping | createMapping (const Key &, const Mod &, const Command &) |
| creates a mapping from the given key/modifier combo to the given command. | |
Classes | |
| struct | Mapping |
|
|
creates an empty map
|
|
||||||||||||
|
creates a map with initial mappings
This ctor expects |
|
||||||||||||||||
|
adds a mapping from If such a mapping already exists, it is modified accordingly.
|
|
||||||||||||
|
calls
|
|
|
clears this map
|
|
||||||||||||||||
|
creates a mapping from the given key/modifier combo to the given command.
This function may be used for inline creation of input maps via the |
|
|
looks up the mapping for
|
|
|
removes all mappings to the given command
|
|
|
removes a mapping
|
1.4.3