Class PlatformInput


  • public class PlatformInput
    extends java.lang.Object
    Copyright (c) 2022-2023 LAX1DUDE. All Rights Reserved. WITH THE EXCEPTION OF PATCH FILES, MINIFIED JAVASCRIPT, AND ALL FILES NORMALLY FOUND IN AN UNMODIFIED MINECRAFT RESOURCE PACK, YOU ARE NOT ALLOWED TO SHARE, DISTRIBUTE, OR REPURPOSE ANY FILE USED BY OR PRODUCED BY THE SOFTWARE IN THIS REPOSITORY WITHOUT PRIOR PERMISSION FROM THE PROJECT AUTHOR. NOT FOR COMMERCIAL OR MALICIOUS USE (please read the 'LICENSE' file this repo's root directory for more info)
    • Field Detail

      • keyboardLockSupported

        public static boolean keyboardLockSupported
      • lockKeys

        public static boolean lockKeys
    • Constructor Detail

      • PlatformInput

        public PlatformInput()
    • Method Detail

      • hasBeenActive

        public static boolean hasBeenActive()
      • getWindowWidth

        public static int getWindowWidth()
      • getWindowHeight

        public static int getWindowHeight()
      • getWindowFocused

        public static boolean getWindowFocused()
      • isCloseRequested

        public static boolean isCloseRequested()
      • update

        public static void update()
      • wasResized

        public static boolean wasResized()
      • keyboardNext

        public static boolean keyboardNext()
      • keyboardGetEventKeyState

        public static boolean keyboardGetEventKeyState()
      • keyboardGetEventKey

        public static int keyboardGetEventKey()
      • keyboardGetEventCharacter

        public static char keyboardGetEventCharacter()
      • keyboardIsKeyDown

        public static boolean keyboardIsKeyDown​(int key)
      • keyboardIsRepeatEvent

        public static boolean keyboardIsRepeatEvent()
      • keyboardEnableRepeatEvents

        public static void keyboardEnableRepeatEvents​(boolean b)
      • mouseNext

        public static boolean mouseNext()
      • mouseGetEventButtonState

        public static boolean mouseGetEventButtonState()
      • mouseGetEventButton

        public static int mouseGetEventButton()
      • mouseGetEventX

        public static int mouseGetEventX()
      • mouseGetEventY

        public static int mouseGetEventY()
      • mouseGetEventDWheel

        public static int mouseGetEventDWheel()
      • mouseGetX

        public static int mouseGetX()
      • mouseGetY

        public static int mouseGetY()
      • mouseIsButtonDown

        public static boolean mouseIsButtonDown​(int i)
      • mouseGetDWheel

        public static int mouseGetDWheel()
      • mouseSetGrabbed

        public static void mouseSetGrabbed​(boolean grab)
      • isMouseGrabbed

        public static boolean isMouseGrabbed()
      • isPointerLocked

        public static boolean isPointerLocked()
      • mouseGetDX

        public static int mouseGetDX()
      • mouseGetDY

        public static int mouseGetDY()
      • mouseSetCursorPosition

        public static void mouseSetCursorPosition​(int x,
                                                  int y)
      • mouseIsInsideWindow

        public static boolean mouseIsInsideWindow()
      • contextLost

        public static boolean contextLost()
      • setFunctionKeyModifier

        public static void setFunctionKeyModifier​(int key)
      • removeEventHandlers

        public static void removeEventHandlers()
      • pressAnyKeyScreen

        public static void pressAnyKeyScreen()
      • clearEvenBuffers

        public static void clearEvenBuffers()
      • toggleFullscreen

        public static void toggleFullscreen()
      • isFullscreen

        public static boolean isFullscreen()