| Total Complexity | 2 |
| Total Lines | 15 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | package de.pewpewproject.lasertag.client; |
||
| 13 | public class KeyBindings { |
||
| 14 | |||
| 15 | private static KeyBinding weaponZoomKeyBinding; |
||
| 16 | |||
| 17 | public static void register() { |
||
| 18 | |||
| 19 | weaponZoomKeyBinding = KeyBindingHelper.registerKeyBinding(new KeyBinding( |
||
| 20 | "key.lasertag.weapon_zoom", |
||
| 21 | InputUtil.Type.KEYSYM, |
||
| 22 | GLFW.GLFW_KEY_V, |
||
| 23 | "keybind.category.lasertag")); |
||
| 24 | } |
||
| 25 | |||
| 26 | public static boolean isWeaponZoomPressed() { |
||
| 27 | return weaponZoomKeyBinding.isPressed(); |
||
| 28 | } |
||
| 30 |