MCPcopy Create free account
hub / github.com/badvision/jace / readState

Method readState

src/main/java/jace/core/Keyboard.java:70–80  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

68 }
69
70 public static byte readState() {
71 // If strobe was cleared...
72 if ((currentKey & 0x080) == 0) {
73 // Call clipboard buffer paste routine
74 int newKey = Keyboard.getClipboardKeystroke();
75 if (newKey >= 0) {
76 pressKey((byte) newKey);
77 }
78 }
79 return currentKey;
80 }
81
82 /**
83 * Creates a new instance of Keyboard

Callers 1

readSwitchMethod · 0.95

Calls 2

getClipboardKeystrokeMethod · 0.95
pressKeyMethod · 0.95

Tested by

no test coverage detected