| 147 | inline const char *keycmd(int type) { return type >= 0 && type < keym::NUMACTIONS ? keycmds[type] : ""; } |
| 148 | |
| 149 | void keymap(int *code, char *key) |
| 150 | { |
| 151 | if(findbindc(*code)) { clientlogf("keymap: double assignment for code %d ignored", *code); return; } |
| 152 | keym &km = keyms[*code]; |
| 153 | km.code = *code; |
| 154 | km.name = newstring(key); |
| 155 | } |
| 156 | COMMAND(keymap, "is"); |
| 157 | |
| 158 | keym *findbind(const char *key) |
no test coverage detected