Java Code Examples for org.lwjgl.glfw.GLFW#GLFW_KEY_DELETE
The following examples show how to use
org.lwjgl.glfw.GLFW#GLFW_KEY_DELETE .
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: KeybindManagerScreen.java From Wurst7 with GNU General Public License v3.0 | 5 votes |
@Override public boolean keyPressed(int keyCode, int scanCode, int int_3) { if(keyCode == GLFW.GLFW_KEY_ENTER) if(editButton.active) editButton.onPress(); else addButton.onPress(); else if(keyCode == GLFW.GLFW_KEY_DELETE) removeButton.onPress(); else if(keyCode == GLFW.GLFW_KEY_ESCAPE) backButton.onPress(); return super.keyPressed(keyCode, scanCode, int_3); }
Example 2
Source File: EditBlockListScreen.java From Wurst7 with GNU General Public License v3.0 | 5 votes |
@Override public boolean keyPressed(int keyCode, int scanCode, int int_3) { if(keyCode == GLFW.GLFW_KEY_ENTER) addButton.onPress(); else if(keyCode == GLFW.GLFW_KEY_DELETE) removeButton.onPress(); else if(keyCode == GLFW.GLFW_KEY_ESCAPE) doneButton.onPress(); return super.keyPressed(keyCode, scanCode, int_3); }
Example 3
Source File: EditItemListScreen.java From Wurst7 with GNU General Public License v3.0 | 5 votes |
@Override public boolean keyPressed(int keyCode, int scanCode, int int_3) { if(keyCode == GLFW.GLFW_KEY_ENTER) addButton.onPress(); else if(keyCode == GLFW.GLFW_KEY_DELETE) removeButton.onPress(); else if(keyCode == GLFW.GLFW_KEY_ESCAPE) doneButton.onPress(); return super.keyPressed(keyCode, scanCode, int_3); }