Available Methods
- isKeyDown ( )
- enableRepeatEvents ( )
- KEY_ESCAPE
- KEY_RETURN
- KEY_SPACE
- getKeyName ( )
- getEventKey ( )
- getEventKeyState ( )
- KEY_TAB
- KEY_LEFT
- KEY_P
- KEY_T
- KEY_M
- KEY_RIGHT
- next ( )
- KEY_NONE
- getEventCharacter ( )
- KEY_BACK
- isRepeatEvent ( )
- KEY_UP
- KEY_G
- KEY_DOWN
- KEY_MINUS
- KEY_U
- isCreated ( )
- KEY_Y
- KEY_H
- poll ( )
- KEY_Q
- KEY_R
- getKeyIndex ( )
- KEY_LSHIFT
- KEY_Z
- KEY_C
- destroy ( )
- KEY_L
- KEY_W
- KEY_2 ( )
- KEY_HOME
- KEY_O
- KEY_X
- KEY_V
- KEY_INSERT
- KEY_F12 ( )
- KEY_END
- KEY_RMENU
- KEY_I
- KEY_N
- KEY_1 ( )
- KEY_3 ( )
- KEY_RSHIFT
- KEY_A
Related Classes
- java.io.BufferedReader
- java.util.LinkedList
- java.util.stream.Collectors
- java.util.Map.Entry
- com.google.gson.Gson
- java.awt.Toolkit
- javax.swing.SwingUtilities
- org.lwjgl.opengl.GL11
- net.minecraft.item.ItemStack
- net.minecraft.client.Minecraft
- net.minecraft.entity.player.EntityPlayer
- net.minecraft.client.gui.GuiScreen
- net.minecraft.client.gui.FontRenderer
- org.lwjgl.input.Mouse
- net.minecraftforge.fml.relauncher.Side
- net.minecraftforge.fml.common.eventhandler.SubscribeEvent
- net.minecraft.client.resources.I18n
- net.minecraftforge.fml.relauncher.SideOnly
- net.minecraft.client.gui.inventory.GuiContainer
- net.minecraft.inventory.Container
- net.minecraft.client.gui.GuiButton
- net.minecraft.inventory.Slot
- net.minecraftforge.fml.common.event.FMLInitializationEvent
- net.minecraft.client.renderer.GlStateManager
- net.minecraft.client.renderer.vertex.DefaultVertexFormats
Java Code Examples for org.lwjgl.input.Keyboard#KEY_RMENU
The following examples show how to use
org.lwjgl.input.Keyboard#KEY_RMENU .
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: KeyboardInput.java From tribaltrouble with GNU General Public License v2.0 | 5 votes |
public final boolean doPoll(GUIRoot gui_root) { Deterministic deterministic = LocalEventQueue.getQueue().getDeterministic(); LocalInput local_input = LocalInput.getLocalInput(); boolean result = false; Keyboard.poll(); while (deterministic.log(Keyboard.next())) { result = true; int event_key = deterministic.log(Keyboard.getEventKey()); boolean event_key_state = deterministic.log(Keyboard.getEventKeyState()); char event_character = deterministic.log(Keyboard.getEventCharacter()); boolean repeat_event = deterministic.log(Keyboard.isRepeatEvent()); switch (event_key) { case Keyboard.KEY_LSHIFT: case Keyboard.KEY_RSHIFT: shift_down = event_key_state; break; case Keyboard.KEY_LCONTROL: case Keyboard.KEY_RCONTROL: control_down = event_key_state; break; case Keyboard.KEY_LMENU: case Keyboard.KEY_RMENU: menu_down = event_key_state; break; } if (checkMagicKey(deterministic, event_key_state, event_key, false, repeat_event)) continue; if (event_key == Keyboard.KEY_NONE) { local_input.keyTyped(gui_root, event_key, event_character); } else if (event_key_state) { local_input.keyPressed(gui_root, event_key, event_character, shift_down, control_down, menu_down, repeat_event); } else { local_input.keyReleased(gui_root, event_key, event_character, shift_down, control_down, menu_down); } } return result; }