Keymap handling. More...
|Keymap implementation. More...|
|const struct keypress *||keymap_find (int keymap, struct keypress kc)|
|Find a keymap, given a keypress. More...|
|static struct keypress *||keymap_make (const struct keypress *actions)|
|Duplicate a given keypress string and return the duplicate. More...|
|void||keymap_add (int keymap, struct keypress trigger, struct keypress *actions, bool user)|
|Add a keymap to the mappings table. More...|
|bool||keymap_remove (int keymap, struct keypress trigger)|
|Remove a keymap. More...|
|Forget and free all keymaps. More...|
|void||keymap_dump (ang_file *fff)|
|Append active keymaps to a given file. More...|
|static struct keymap *||keymaps [KEYMAP_MODE_MAX]|
|List of keymaps. More...|
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.