public void keyPressed(int key) { if (key == Def.SOFTKEY_LEFT || key == Def.SOFTKEY_LEFT) { if (Define.mainState != Define.STATE_MENU) { Define.mainState = Define.STATE_MENU; } } else { reader.keyPressed(key); } }
public void paint(Graphics g) { paintTheme(g); reader.paint(g); g.drawImage(leftbar, 2, Def.SYSTEM_SH, Def.BOTTOM_LEFT); g.drawImage(rightbar, Def.SYSTEM_SW - 2, Def.SYSTEM_SH, Def.BOTTOM_RIGHT); }
public void keyReleased(int key) { reader.keyReleased(key); }