| 260 | } |
| 261 | |
| 262 | void keybind(const char *key, int type) |
| 263 | { |
| 264 | keym *km = findbind(key); |
| 265 | if(!km) { conoutf("unknown key \"%s\"", key); return; } |
| 266 | if(type < keym::ACTION_DEFAULT || type >= keym::NUMACTIONS) { conoutf("invalid bind type \"%d\"", type); return; } |
| 267 | result(km->actions[type]); |
| 268 | } |
| 269 | |
| 270 | bool bindc(int code, const char *action, int type) |
| 271 | { |
no test coverage detected