(int keyCode)
| 1303 | |
| 1304 | /// {@inheritDoc} |
| 1305 | @Override |
| 1306 | public void keyPressed(int keyCode) { |
| 1307 | int commandBehavior = getCommandBehavior(); |
| 1308 | if (commandBehavior >= Display.COMMAND_BEHAVIOR_BUTTON_BAR) { |
| 1309 | return; |
| 1310 | } |
| 1311 | if (getCommandCount() > 0) { |
| 1312 | if (isLSK(keyCode)) { |
| 1313 | if (left != null) { |
| 1314 | left.pressed(); |
| 1315 | } |
| 1316 | } else { |
| 1317 | // it might be a back command or the fire... |
| 1318 | if (isRSK(keyCode)) { |
| 1319 | if (right != null) { |
| 1320 | right.pressed(); |
| 1321 | } |
| 1322 | } else { |
| 1323 | if (Display.getInstance().getGameAction(keyCode) == Display.GAME_FIRE) { |
| 1324 | main.pressed(); |
| 1325 | } |
| 1326 | } |
| 1327 | } |
| 1328 | } |
| 1329 | } |
| 1330 | |
| 1331 | /// {@inheritDoc} |
| 1332 | @Override |
nothing calls this directly
no test coverage detected