Java Code Examples for org.lwjgl.input.Keyboard#KEYBOARD_SIZE
The following examples show how to use
org.lwjgl.input.Keyboard#KEYBOARD_SIZE .
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: Input.java From opsu-dance with GNU General Public License v3.0 | 5 votes |
public Input() { this.keyEvents = new KeyEvent[Keyboard.KEYBOARD_SIZE]; this.mouseEvents = new MouseEvent[3]; final GlobalInputListener globalListener = new GlobalInputListener(); this.keyListeners = new InputListenerCollection<>(globalListener); this.mouseListeners = new InputListenerCollection<>(globalListener); }
Example 2
Source File: ItemBBag.java From BetterChests with GNU Lesser General Public License v3.0 | 5 votes |
@Override @SideOnly(Side.CLIENT) public void addInformation(ItemStack stack, World world, List<String> tooltip, ITooltipFlag flag) { super.addInformation(stack, world, tooltip, flag); int keycode = ClientProxy.keyBind.getKeyCode(); if (keycode >= 0 && keycode < Keyboard.KEYBOARD_SIZE) { tooltip.add(LocalizationHelper.localizeFormatted("betterchests:tooltip.betterbag.keybind", Keyboard.getKeyName(keycode))); } }
Example 3
Source File: LwjglKeyInput.java From jmonkeyengine with BSD 3-Clause "New" or "Revised" License | 4 votes |
public int getKeyCount(){ return Keyboard.KEYBOARD_SIZE; }
Example 4
Source File: LwjglKeyInput.java From MikuMikuStudio with BSD 2-Clause "Simplified" License | 4 votes |
public int getKeyCount(){ return Keyboard.KEYBOARD_SIZE; }