Class PlatformInput
- java.lang.Object
-
- net.lax1dude.eaglercraft.v1_8.internal.PlatformInput
-
public class PlatformInput extends java.lang.ObjectCopyright (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 Summary
Fields Modifier and Type Field Description static booleankeyboardLockSupportedstatic booleanlockKeys
-
Constructor Summary
Constructors Constructor Description PlatformInput()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidclearEvenBuffers()static booleancontextLost()static booleangetWindowFocused()static intgetWindowHeight()static intgetWindowWidth()static booleanhasBeenActive()static booleanisCloseRequested()static booleanisFullscreen()static booleanisMouseGrabbed()static booleanisPointerLocked()static voidkeyboardEnableRepeatEvents(boolean b)static charkeyboardGetEventCharacter()static intkeyboardGetEventKey()static booleankeyboardGetEventKeyState()static booleankeyboardIsKeyDown(int key)static booleankeyboardIsRepeatEvent()static booleankeyboardNext()static intmouseGetDWheel()static intmouseGetDX()static intmouseGetDY()static intmouseGetEventButton()static booleanmouseGetEventButtonState()static intmouseGetEventDWheel()static intmouseGetEventX()static intmouseGetEventY()static intmouseGetX()static intmouseGetY()static booleanmouseIsButtonDown(int i)static booleanmouseIsInsideWindow()static booleanmouseNext()static voidmouseSetCursorPosition(int x, int y)static voidmouseSetGrabbed(boolean grab)static voidpressAnyKeyScreen()static voidremoveEventHandlers()static voidsetFunctionKeyModifier(int key)static voidtoggleFullscreen()static voidupdate()static booleanwasResized()
-
-
-
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()
-
-