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 应用程序使用 Sun Java Wireless Toolkit 2.5.2 和 lcdui 包。我们想以编程方式禁用导航键(上、下、左、右)。我该怎么做?
public void keyPressed(int keyCode) { int action = getGameAction(keyCode); if (action == UP || action == DOWN || action == LEFT || action == RIGHT) {} else super.keyPressed(keyCode); }