MCPcopy Create free account
hub / github.com/catabriga/graphwar / keyPressed

Method keyPressed

src/Graphwar/GameScreen.java:531–544  ·  view source on GitHub ↗
(KeyEvent e)

Source from the content-addressed store, hash-verified

529 }
530
531 public void keyPressed(KeyEvent e)
532 {
533 if(graphwar.getGameData().getGameMode() == Constants.SND_ODE)
534 {
535 if(e.getKeyCode() == KeyEvent.VK_UP)
536 {
537 graphwar.getGameData().angleUp();
538 }
539 else if(e.getKeyCode() == KeyEvent.VK_DOWN)
540 {
541 graphwar.getGameData().angleDown();
542 }
543 }
544 }
545
546 public void keyReleased(KeyEvent e)
547 {

Callers

nothing calls this directly

Calls 4

getGameDataMethod · 0.80
angleUpMethod · 0.80
angleDownMethod · 0.80
getGameModeMethod · 0.45

Tested by

no test coverage detected