MCPcopy Create free account
hub / github.com/Card-Forge/forge / isModifierKey

Method isModifierKey

forge-gui-mobile/src/forge/Forge.java:1180–1191  ·  view source on GitHub ↗
(int keyCode)

Source from the content-addressed store, hash-verified

1178 }
1179
1180 public static boolean isModifierKey(int keyCode) {
1181 switch (keyCode) {
1182 case Keys.CONTROL_LEFT:
1183 case Keys.CONTROL_RIGHT:
1184 case Keys.SHIFT_LEFT:
1185 case Keys.SHIFT_RIGHT:
1186 case Keys.ALT_LEFT:
1187 case Keys.ALT_RIGHT:
1188 return true;
1189 }
1190 return false;
1191 }
1192 }
1193 public static float mouseMovedX = 0;
1194 public static float mouseMovedY = 0;

Callers 1

keyDownMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected