MCPcopy Create free account
hub / github.com/5zig/The-5zig-Mod / isCtrlKeyDown

Method isCtrlKeyDown

The 5zig Mod/src/eu/the5zig/mod/The5zigMod.java:590–593  ·  view source on GitHub ↗
(boolean isMacOS)

Source from the content-addressed store, hash-verified

588 }
589
590 public static boolean isCtrlKeyDown(boolean isMacOS) {
591 return isMacOS && The5zigMod.getConfig().getBool("macCmdDrop") ? Keyboard.isKeyDown(Keyboard.KEY_LMETA) || Keyboard.isKeyDown(Keyboard.KEY_RMETA)
592 : Keyboard.isKeyDown(Keyboard.KEY_LCONTROL) || Keyboard.isKeyDown(Keyboard.KEY_RCONTROL);
593 }
594
595 public static boolean isCtrlKeyDown() {
596 return isCtrlKeyDown(Utils.getPlatform() == Utils.Platform.MAC);

Callers 5

isCtrlKeyDownMethod · 0.95
onKeyTypeMethod · 0.95
onKeyTypeMethod · 0.95
tickMethod · 0.95
onTickMethod · 0.95

Calls 4

getConfigMethod · 0.95
isKeyDownMethod · 0.95
getPlatformMethod · 0.95
getBoolMethod · 0.80

Tested by

no test coverage detected