Java Code Examples for com.badlogic.gdx.Input.Keys#R
The following examples show how to use
com.badlogic.gdx.Input.Keys#R .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: ConnectTheDotsGenerator.java From ud405 with MIT License | 5 votes |
@Override public boolean keyDown(int keycode) { if (keycode == Keys.R){ resetDots(); } else if (keycode == Keys.F){ logDotsAsFloatArray(); } return false; }
Example 2
Source File: BouncingBall.java From ud405 with MIT License | 5 votes |
@Override public boolean keyDown(int keycode) { if (keycode == Keys.SPACE){ randomKick(); } if (keycode == Keys.R){ init(); } return true; }
Example 3
Source File: BouncingBall.java From ud405 with MIT License | 5 votes |
@Override public boolean keyDown(int keycode) { if (keycode == Keys.SPACE) { randomKick(); } if (keycode == Keys.R) { init(); } return true; }
Example 4
Source File: BouncingBall.java From ud405 with MIT License | 5 votes |
@Override public boolean keyDown(int keycode) { if (keycode == Keys.SPACE) { randomKick(); } if (keycode == Keys.R) { init(); } return true; }
Example 5
Source File: DemoCamera.java From ud405 with MIT License | 5 votes |
@Override public boolean keyUp(int keycode) { if (keycode == Keys.SPACE) { inCloseupMode = !inCloseupMode; } // Reset if (keycode == Keys.R) { closeupCamera.setToOrtho(false, Gdx.graphics.getWidth() * INITIAL_ZOOM, Gdx.graphics.getHeight() * INITIAL_ZOOM); } if (keycode == Keys.F) { fixAspectRatio(); } return super.keyUp(keycode); }
Example 6
Source File: BouncingBall.java From ud405 with MIT License | 5 votes |
@Override public boolean keyDown(int keycode) { if (keycode == Keys.SPACE) { randomKick(); } if (keycode == Keys.R) { init(); } return true; }
Example 7
Source File: BouncingBall.java From ud405 with MIT License | 5 votes |
@Override public boolean keyDown(int keycode) { if (keycode == Keys.SPACE){ randomKick(); } if (keycode == Keys.R){ init(); } return true; }
Example 8
Source File: BouncingBall.java From ud405 with MIT License | 5 votes |
@Override public boolean keyDown(int keycode) { if (keycode == Keys.SPACE){ randomKick(); } // TODO: If Keys.R was pressed, call init() to reset the ball if (keycode == Keys.R){ init(); } return true; }