MCPcopy Create free account
hub / github.com/demoth/jake2 / KeyBindingFunc

Method KeyBindingFunc

client/src/main/java/jake2/client/Menu.java:783–795  ·  view source on GitHub ↗
(Object self)

Source from the content-addressed store, hash-verified

781 }
782
783 private static void KeyBindingFunc(Object self) {
784 menuaction_s a = (menuaction_s) self;
785 int keys[] = { 0, 0 };
786
787 FindKeysForCommand(bindnames[a.localdata[0]][0], keys);
788
789 if (keys[1] != -1)
790 UnbindCommand(bindnames[a.localdata[0]][0]);
791
792 bind_grab = true;
793
794 Menu_SetStatusBar(s_keys_menu, "press a key or button for this action");
795 }
796
797 private static void Keys_MenuInit() {
798 int y = 0;

Callers 1

Keys_MenuKey_fMethod · 0.95

Calls 3

FindKeysForCommandMethod · 0.95
UnbindCommandMethod · 0.95
Menu_SetStatusBarMethod · 0.95

Tested by

no test coverage detected