MCPcopy Create free account
hub / github.com/agateau/pixelwheels / isKeyPressed

Method isKeyPressed

core/src/com/agateau/ui/KeyMapper.java:89–98  ·  view source on GitHub ↗
(VirtualKey vkey)

Source from the content-addressed store, hash-verified

87 }
88
89 @Override
90 public boolean isKeyPressed(VirtualKey vkey) {
91 Integer[] keys = mKeysForVirtualKey.get(vkey);
92 for (Integer key : keys) {
93 if (Gdx.input.isKeyPressed(key)) {
94 return true;
95 }
96 }
97 return false;
98 }
99
100 @Override
101 public boolean isKeyJustPressed(VirtualKey vkey) {

Callers

nothing calls this directly

Calls 2

isKeyPressedMethod · 0.65
getMethod · 0.45

Tested by

no test coverage detected