Class PlatformInput
- java.lang.Object
-
- net.lax1dude.eaglercraft.v1_8.internal.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 Summary
Fields Modifier and Type Field Description static boolean
keyboardLockSupported
static boolean
lockKeys
-
Constructor Summary
Constructors Constructor Description PlatformInput()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
clearEvenBuffers()
static boolean
contextLost()
static boolean
getWindowFocused()
static int
getWindowHeight()
static int
getWindowWidth()
static boolean
hasBeenActive()
static boolean
isCloseRequested()
static boolean
isFullscreen()
static boolean
isMouseGrabbed()
static boolean
isPointerLocked()
static void
keyboardEnableRepeatEvents(boolean b)
static char
keyboardGetEventCharacter()
static int
keyboardGetEventKey()
static boolean
keyboardGetEventKeyState()
static boolean
keyboardIsKeyDown(int key)
static boolean
keyboardIsRepeatEvent()
static boolean
keyboardNext()
static int
mouseGetDWheel()
static int
mouseGetDX()
static int
mouseGetDY()
static int
mouseGetEventButton()
static boolean
mouseGetEventButtonState()
static int
mouseGetEventDWheel()
static int
mouseGetEventX()
static int
mouseGetEventY()
static int
mouseGetX()
static int
mouseGetY()
static boolean
mouseIsButtonDown(int i)
static boolean
mouseIsInsideWindow()
static boolean
mouseNext()
static void
mouseSetCursorPosition(int x, int y)
static void
mouseSetGrabbed(boolean grab)
static void
pressAnyKeyScreen()
static void
removeEventHandlers()
static void
setFunctionKeyModifier(int key)
static void
toggleFullscreen()
static void
update()
static boolean
wasResized()
-
-
-
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()
-
-