本文整理匯總了Java中com.badlogic.gdx.Input.Keys.F6屬性的典型用法代碼示例。如果您正苦於以下問題:Java Keys.F6屬性的具體用法?Java Keys.F6怎麽用?Java Keys.F6使用的例子?那麽, 這裏精選的屬性代碼示例或許可以為您提供幫助。您也可以進一步了解該屬性所在類com.badlogic.gdx.Input.Keys
的用法示例。
在下文中一共展示了Keys.F6屬性的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: keyUp
@Override
public boolean keyUp(int keycode) {
if (keycode == Keys.ESCAPE || (keycode == Keys.SPACE && PAUSED)) {
PAUSED = !PAUSED;
Gdx.input.setCursorCatched(!PAUSED);
} else if (keycode == Keys.F5) {
cameraMode++;
cameraMode = cameraMode % 3;
if (cameraMode == 2) {
cameraMode = 0;
}
} else if (keycode == Keys.F6) {
cameraMode = 2;
} else if (keycode == Keys.F11) {
ExterminateGame.fullscree = !ExterminateGame.fullscree;
ExterminateGame.updateFullscreen();
}
if (keycode == Keys.F3) {
InGame.showInfo = !InGame.showInfo;
}
if (keycode == Keys.F4) {
drawHitBox = !drawHitBox;
}
keys.remove(keycode, 0);
return true;
}
示例2: keyDown
@Override
public boolean keyDown (int keycode) {
switch(keycode){
case Keys.F5:
DeveloperTools.spawnEnemyAtCursor();
return true;
case Keys.F6:
DeveloperTools.startWaveNow();
return true;
}
return false;
}