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

Method FindKeysForCommand

client/src/main/java/jake2/client/Menu.java:726–746  ·  view source on GitHub ↗
(String command, int twokeys[])

Source from the content-addressed store, hash-verified

724 }
725
726 private static void FindKeysForCommand(String command, int twokeys[]) {
727 int count;
728 int j;
729 String b;
730
731 twokeys[0] = twokeys[1] = -1;
732 count = 0;
733
734 for (j = 0; j < 256; j++) {
735 b = ClientGlobals.keybindings[j];
736 if (b == null)
737 continue;
738
739 if (b.equals(command)) {
740 twokeys[count] = j;
741 count++;
742 if (count == 2)
743 break;
744 }
745 }
746 }
747
748 private static void KeyCursorDrawFunc(menuframework_s menu) {
749 if (bind_grab)

Callers 2

DrawKeyBindingFuncMethod · 0.95
KeyBindingFuncMethod · 0.95

Calls 1

equalsMethod · 0.45

Tested by

no test coverage detected