MCPcopy Index your code
hub / github.com/processing/processing / getKeyCode

Method getKeyCode

core/src/processing/javafx/PSurfaceFX.java:942–956  ·  view source on GitHub ↗
(KeyEvent fxEvent)

Source from the content-addressed store, hash-verified

940
941
942 @SuppressWarnings("deprecation")
943 private int getKeyCode(KeyEvent fxEvent) {
944 if (fxEvent.getEventType() == KeyEvent.KEY_TYPED) {
945 return 0;
946 }
947
948 KeyCode kc = fxEvent.getCode();
949 switch (kc) {
950 case ALT_GRAPH:
951 return PConstants.ALT;
952 default:
953 break;
954 }
955 return kc.impl_getCode();
956 }
957
958
959 @SuppressWarnings("deprecation")

Callers 1

fxKeyEventMethod · 0.95

Calls 1

getCodeMethod · 0.80

Tested by

no test coverage detected