Java Code Examples for org.lwjgl.input.Keyboard#KEY_F12

The following examples show how to use org.lwjgl.input.Keyboard#KEY_F12 . 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: Utils.java    From opsu-dance with GNU General Public License v3.0 4 votes vote down vote up
public static boolean isValidGameKey(int key) {
	return (key != Keyboard.KEY_ESCAPE && key != Keyboard.KEY_SPACE &&
		key != Keyboard.KEY_UP && key != Keyboard.KEY_DOWN &&
		key != Keyboard.KEY_F7 && key != Keyboard.KEY_F10 && key != Keyboard.KEY_F12);
}
 
Example 2
Source File: Options.java    From opsu with GNU General Public License v3.0 4 votes vote down vote up
/**
 * Checks if the given key is a valid game key.
 * @param key the keyboard key
 * @return {@code true} if valid, {@code false} otherwise
 */
private static boolean isValidGameKey(int key) {
	return (key != Keyboard.KEY_ESCAPE && key != Keyboard.KEY_SPACE &&
	        key != Keyboard.KEY_UP && key != Keyboard.KEY_DOWN &&
	        key != Keyboard.KEY_F7 && key != Keyboard.KEY_F10 && key != Keyboard.KEY_F12);
}