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

Method getButton

src/main/java/jace/hardware/Joystick.java:393–400  ·  view source on GitHub ↗
(Integer... choices)

Source from the content-addressed store, hash-verified

391 boolean justPaused = false;
392
393 private boolean getButton(Integer... choices) {
394 for (Integer choice : choices) {
395 if (choice != null && choice >= 0 && choice < buttons.capacity()) {
396 return buttons.get(choice) != 0;
397 }
398 }
399 return false;
400 }
401
402 private void readButtons() {
403 if (readGLFWJoystick()) {

Callers 7

readJoystickMethod · 0.95
readButtonsMethod · 0.95
processMouseEventMethod · 0.80
mousePressedMethod · 0.80
mouseReleasedMethod · 0.80

Calls 1

getMethod · 0.45

Tested by

no test coverage detected