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

Method Commands

client/src/main/java/jake2/client/IN.java:123–138  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

121 }
122
123 public static void Commands() {
124 int i;
125
126 if (!IN.mouse_avail)
127 return;
128
129 KBD kbd= ClientGlobals.re.getKeyboardHandler();
130 for (i=0 ; i<3 ; i++) {
131 if ( (IN.mouse_buttonstate & (1<<i)) != 0 && (IN.mouse_oldbuttonstate & (1<<i)) == 0 )
132 kbd.Do_Key_Event(Key.K_MOUSE1 + i, true);
133
134 if ( (IN.mouse_buttonstate & (1<<i)) == 0 && (IN.mouse_oldbuttonstate & (1<<i)) != 0 )
135 kbd.Do_Key_Event(Key.K_MOUSE1 + i, false);
136 }
137 IN.mouse_oldbuttonstate = IN.mouse_buttonstate;
138 }
139
140 public static void Frame() {
141

Callers 1

SendCommandMethod · 0.95

Calls 2

Do_Key_EventMethod · 0.95
getKeyboardHandlerMethod · 0.65

Tested by

no test coverage detected