MCPcopy Index your code
hub / github.com/BombusMod/BombusMod / keyPressed

Method keyPressed

src/main/java/ui/VirtualCanvas.java:140–162  ·  view source on GitHub ↗
(int rawKeyCode)

Source from the content-addressed store, hash-verified

138 }
139
140 protected final void keyPressed(int rawKeyCode) {
141 int keyCode = getKeyCode(rawKeyCode);
142//#ifdef AUTOSTATUS
143 AutoStatus.getInstance().userActivity(Config.AWAY_IDLE);
144//#endif
145 kHold = false;
146 if (PopUp.getInstance().handlePressed(keyCode)) {
147//#ifdef USER_KEYS
148 UserKeyExec.getInstance().keyExecute(keyCode, true);
149 UserKeyExec.getInstance().afterActions(keyCode);
150//#endif
151 repaint();
152 return;
153 }
154 checkKey(keyCode);
155 repaint();
156//#ifdef LIGHT_CONFIG
157//# CustomLight.keyPressed();
158//#endif
159//#ifdef USER_KEYS
160 UserKeyExec.getInstance().afterActions(keyCode);
161//#endif
162 }
163
164 protected final void keyRepeated(int rawKeyCode){
165 int keyCode = getKeyCode(rawKeyCode);

Callers

nothing calls this directly

Calls 10

getKeyCodeMethod · 0.95
getInstanceMethod · 0.95
getInstanceMethod · 0.95
getInstanceMethod · 0.95
checkKeyMethod · 0.95
userActivityMethod · 0.80
handlePressedMethod · 0.80
keyExecuteMethod · 0.80
afterActionsMethod · 0.80
repaintMethod · 0.65

Tested by

no test coverage detected