Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
j2meアプリケーションにはSunJavaWirelessToolkit2.5.2とlcduiパッケージを使用しています。プログラムでナビゲーションキー(UP、DOWN、LEFT、RIGHT)を無効にします。どうすればいいですか?
public void keyPressed(int keyCode) { int action = getGameAction(keyCode); if (action == UP || action == DOWN || action == LEFT || action == RIGHT) {} else super.keyPressed(keyCode); }