Keymap handling. More...
|Keymap implementation. More...|
|struct keypress *||keymap_find (int keymap, struct keypress kc)|
|Find a keymap, given a keypress. |
|static struct keypress *||keymap_make (const struct keypress *actions)|
|Duplicate a given keypress string and return the duplicate. |
|void||keymap_add (int keymap, struct keypress trigger, struct keypress *actions, bool user)|
|Add a keymap to the mappings table. |
|bool||keymap_remove (int keymap, struct keypress trigger)|
|Remove a keymap. |
|Forget and free all keymaps. |
|void||keymap_dump (ang_file *fff)|
|Append active keymaps to a given file. |
|static struct keymap *||keymaps [KEYMAP_MODE_MAX]|
|List of keymaps. |
Copyright (c) 2011 Andi Sidwell
This work is free software; you can redistribute it and/or modify it under the terms of either:
a) the GNU General Public License as published by the Free Software Foundation, version 2, or
b) the "Angband licence": This software may be copied and distributed for educational, research, and not for profit purposes provided that this copyright and statement are included in all such copies. Other copyrights may also apply.
Add a keymap to the mappings table.
Given a keymap mode, a trigger, and an action, store it in the keymap list.
Remove a keymap.
Given a keypress, remove any keymap that would trigger on that key.
Return TRUE if one was removed.