Package com.badlogic.gdx.backends.lwjgl3
Class DefaultLwjgl3Input
- java.lang.Object
-
- com.badlogic.gdx.AbstractInput
-
- com.badlogic.gdx.backends.lwjgl3.DefaultLwjgl3Input
-
- All Implemented Interfaces:
Lwjgl3Input,com.badlogic.gdx.Input,com.badlogic.gdx.utils.Disposable
public class DefaultLwjgl3Input extends com.badlogic.gdx.AbstractInput implements Lwjgl3Input
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.badlogic.gdx.Input
com.badlogic.gdx.Input.Buttons, com.badlogic.gdx.Input.Keys, com.badlogic.gdx.Input.OnscreenKeyboardType, com.badlogic.gdx.Input.Orientation, com.badlogic.gdx.Input.Peripheral, com.badlogic.gdx.Input.TextInputListener, com.badlogic.gdx.Input.VibrationType
-
-
Constructor Summary
Constructors Constructor Description DefaultLwjgl3Input(Lwjgl3Window window)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected charcharacterForKeyCode(int key)voiddispose()floatgetAccelerometerX()floatgetAccelerometerY()floatgetAccelerometerZ()floatgetAzimuth()longgetCurrentEventTime()intgetDeltaX()intgetDeltaX(int pointer)intgetDeltaY()intgetDeltaY(int pointer)intgetGdxKeyCode(int lwjglKeyCode)floatgetGyroscopeX()floatgetGyroscopeY()floatgetGyroscopeZ()com.badlogic.gdx.InputProcessorgetInputProcessor()intgetMaxPointers()com.badlogic.gdx.Input.OrientationgetNativeOrientation()floatgetPitch()floatgetPressure()floatgetPressure(int pointer)floatgetRoll()intgetRotation()voidgetRotationMatrix(float[] matrix)voidgetTextInput(com.badlogic.gdx.Input.TextInputListener listener, java.lang.String title, java.lang.String text, java.lang.String hint)voidgetTextInput(com.badlogic.gdx.Input.TextInputListener listener, java.lang.String title, java.lang.String text, java.lang.String hint, com.badlogic.gdx.Input.OnscreenKeyboardType type)intgetX()intgetX(int pointer)intgetY()intgetY(int pointer)booleanisButtonJustPressed(int button)booleanisButtonPressed(int button)booleanisCursorCatched()booleanisPeripheralAvailable(com.badlogic.gdx.Input.Peripheral peripheral)booleanisTouched()booleanisTouched(int pointer)booleanjustTouched()voidprepareNext()voidresetPollingStates()voidsetCursorCatched(boolean catched)voidsetCursorPosition(int x, int y)voidsetInputProcessor(com.badlogic.gdx.InputProcessor processor)voidsetOnscreenKeyboardVisible(boolean visible)voidsetOnscreenKeyboardVisible(boolean visible, com.badlogic.gdx.Input.OnscreenKeyboardType type)voidupdate()voidvibrate(int milliseconds)voidvibrate(int milliseconds, boolean fallback)voidvibrate(int milliseconds, int amplitude, boolean fallback)voidvibrate(com.badlogic.gdx.Input.VibrationType vibrationType)voidwindowHandleChanged(long windowHandle)-
Methods inherited from class com.badlogic.gdx.AbstractInput
isCatchBackKey, isCatchKey, isCatchMenuKey, isKeyJustPressed, isKeyPressed, setCatchBackKey, setCatchKey, setCatchMenuKey
-
-
-
-
Constructor Detail
-
DefaultLwjgl3Input
public DefaultLwjgl3Input(Lwjgl3Window window)
-
-
Method Detail
-
resetPollingStates
public void resetPollingStates()
- Specified by:
resetPollingStatesin interfaceLwjgl3Input
-
windowHandleChanged
public void windowHandleChanged(long windowHandle)
- Specified by:
windowHandleChangedin interfaceLwjgl3Input
-
update
public void update()
- Specified by:
updatein interfaceLwjgl3Input
-
prepareNext
public void prepareNext()
- Specified by:
prepareNextin interfaceLwjgl3Input
-
getMaxPointers
public int getMaxPointers()
- Specified by:
getMaxPointersin interfacecom.badlogic.gdx.Input
-
getX
public int getX()
- Specified by:
getXin interfacecom.badlogic.gdx.Input
-
getX
public int getX(int pointer)
- Specified by:
getXin interfacecom.badlogic.gdx.Input
-
getDeltaX
public int getDeltaX()
- Specified by:
getDeltaXin interfacecom.badlogic.gdx.Input
-
getDeltaX
public int getDeltaX(int pointer)
- Specified by:
getDeltaXin interfacecom.badlogic.gdx.Input
-
getY
public int getY()
- Specified by:
getYin interfacecom.badlogic.gdx.Input
-
getY
public int getY(int pointer)
- Specified by:
getYin interfacecom.badlogic.gdx.Input
-
getDeltaY
public int getDeltaY()
- Specified by:
getDeltaYin interfacecom.badlogic.gdx.Input
-
getDeltaY
public int getDeltaY(int pointer)
- Specified by:
getDeltaYin interfacecom.badlogic.gdx.Input
-
isTouched
public boolean isTouched()
- Specified by:
isTouchedin interfacecom.badlogic.gdx.Input
-
justTouched
public boolean justTouched()
- Specified by:
justTouchedin interfacecom.badlogic.gdx.Input
-
isTouched
public boolean isTouched(int pointer)
- Specified by:
isTouchedin interfacecom.badlogic.gdx.Input
-
getPressure
public float getPressure()
- Specified by:
getPressurein interfacecom.badlogic.gdx.Input
-
getPressure
public float getPressure(int pointer)
- Specified by:
getPressurein interfacecom.badlogic.gdx.Input
-
isButtonPressed
public boolean isButtonPressed(int button)
- Specified by:
isButtonPressedin interfacecom.badlogic.gdx.Input
-
isButtonJustPressed
public boolean isButtonJustPressed(int button)
- Specified by:
isButtonJustPressedin interfacecom.badlogic.gdx.Input
-
getTextInput
public void getTextInput(com.badlogic.gdx.Input.TextInputListener listener, java.lang.String title, java.lang.String text, java.lang.String hint)- Specified by:
getTextInputin interfacecom.badlogic.gdx.Input
-
getTextInput
public void getTextInput(com.badlogic.gdx.Input.TextInputListener listener, java.lang.String title, java.lang.String text, java.lang.String hint, com.badlogic.gdx.Input.OnscreenKeyboardType type)- Specified by:
getTextInputin interfacecom.badlogic.gdx.Input
-
getCurrentEventTime
public long getCurrentEventTime()
- Specified by:
getCurrentEventTimein interfacecom.badlogic.gdx.Input
-
setInputProcessor
public void setInputProcessor(com.badlogic.gdx.InputProcessor processor)
- Specified by:
setInputProcessorin interfacecom.badlogic.gdx.Input
-
getInputProcessor
public com.badlogic.gdx.InputProcessor getInputProcessor()
- Specified by:
getInputProcessorin interfacecom.badlogic.gdx.Input
-
setCursorCatched
public void setCursorCatched(boolean catched)
- Specified by:
setCursorCatchedin interfacecom.badlogic.gdx.Input
-
isCursorCatched
public boolean isCursorCatched()
- Specified by:
isCursorCatchedin interfacecom.badlogic.gdx.Input
-
setCursorPosition
public void setCursorPosition(int x, int y)- Specified by:
setCursorPositionin interfacecom.badlogic.gdx.Input
-
characterForKeyCode
protected char characterForKeyCode(int key)
-
getGdxKeyCode
public int getGdxKeyCode(int lwjglKeyCode)
-
dispose
public void dispose()
- Specified by:
disposein interfacecom.badlogic.gdx.utils.Disposable
-
getAccelerometerX
public float getAccelerometerX()
- Specified by:
getAccelerometerXin interfacecom.badlogic.gdx.Input
-
getAccelerometerY
public float getAccelerometerY()
- Specified by:
getAccelerometerYin interfacecom.badlogic.gdx.Input
-
getAccelerometerZ
public float getAccelerometerZ()
- Specified by:
getAccelerometerZin interfacecom.badlogic.gdx.Input
-
isPeripheralAvailable
public boolean isPeripheralAvailable(com.badlogic.gdx.Input.Peripheral peripheral)
- Specified by:
isPeripheralAvailablein interfacecom.badlogic.gdx.Input
-
getRotation
public int getRotation()
- Specified by:
getRotationin interfacecom.badlogic.gdx.Input
-
getNativeOrientation
public com.badlogic.gdx.Input.Orientation getNativeOrientation()
- Specified by:
getNativeOrientationin interfacecom.badlogic.gdx.Input
-
setOnscreenKeyboardVisible
public void setOnscreenKeyboardVisible(boolean visible)
- Specified by:
setOnscreenKeyboardVisiblein interfacecom.badlogic.gdx.Input
-
setOnscreenKeyboardVisible
public void setOnscreenKeyboardVisible(boolean visible, com.badlogic.gdx.Input.OnscreenKeyboardType type)- Specified by:
setOnscreenKeyboardVisiblein interfacecom.badlogic.gdx.Input
-
vibrate
public void vibrate(int milliseconds)
- Specified by:
vibratein interfacecom.badlogic.gdx.Input
-
vibrate
public void vibrate(int milliseconds, boolean fallback)- Specified by:
vibratein interfacecom.badlogic.gdx.Input
-
vibrate
public void vibrate(int milliseconds, int amplitude, boolean fallback)- Specified by:
vibratein interfacecom.badlogic.gdx.Input
-
vibrate
public void vibrate(com.badlogic.gdx.Input.VibrationType vibrationType)
- Specified by:
vibratein interfacecom.badlogic.gdx.Input
-
getAzimuth
public float getAzimuth()
- Specified by:
getAzimuthin interfacecom.badlogic.gdx.Input
-
getPitch
public float getPitch()
- Specified by:
getPitchin interfacecom.badlogic.gdx.Input
-
getRoll
public float getRoll()
- Specified by:
getRollin interfacecom.badlogic.gdx.Input
-
getRotationMatrix
public void getRotationMatrix(float[] matrix)
- Specified by:
getRotationMatrixin interfacecom.badlogic.gdx.Input
-
getGyroscopeX
public float getGyroscopeX()
- Specified by:
getGyroscopeXin interfacecom.badlogic.gdx.Input
-
getGyroscopeY
public float getGyroscopeY()
- Specified by:
getGyroscopeYin interfacecom.badlogic.gdx.Input
-
getGyroscopeZ
public float getGyroscopeZ()
- Specified by:
getGyroscopeZin interfacecom.badlogic.gdx.Input
-
-