MCPcopy Create free account
hub / github.com/codenameone/CodenameOne / keyPressed

Method keyPressed

CodenameOne/src/com/codename1/ui/Button.java:748–753  ·  view source on GitHub ↗
(int keyCode)

Source from the content-addressed store, hash-verified

746
747 /// {@inheritDoc}
748 @Override
749 public void keyPressed(int keyCode) {
750 if (Display.getInstance().getGameAction(keyCode) == Display.GAME_FIRE) {
751 pressed();
752 }
753 }
754
755 /// {@inheritDoc}
756 @Override

Callers

nothing calls this directly

Calls 3

getInstanceMethod · 0.95
pressedMethod · 0.95
getGameActionMethod · 0.45

Tested by

no test coverage detected