public class Lwjgl3Mini2DxInput
extends java.lang.Object
implements com.badlogic.gdx.Input, com.badlogic.gdx.utils.Disposable
Constructor and Description |
---|
Lwjgl3Mini2DxInput(Lwjgl3Mini2DxWindow window) |
Modifier and Type | Method and Description |
---|---|
void |
cancelVibrate() |
void |
dispose() |
float |
getAccelerometerX() |
float |
getAccelerometerY() |
float |
getAccelerometerZ() |
float |
getAzimuth() |
long |
getCurrentEventTime() |
int |
getDeltaX() |
int |
getDeltaX(int pointer) |
int |
getDeltaY() |
int |
getDeltaY(int pointer) |
static int |
getGdxKeyCode(int lwjglKeyCode) |
static int |
getGlfwKeyCode(int gdxKeyCode) |
float |
getGyroscopeX() |
float |
getGyroscopeY() |
float |
getGyroscopeZ() |
com.badlogic.gdx.InputProcessor |
getInputProcessor() |
int |
getMaxPointers() |
com.badlogic.gdx.Input.Orientation |
getNativeOrientation() |
float |
getPitch() |
float |
getPressure() |
float |
getPressure(int pointer) |
float |
getRoll() |
int |
getRotation() |
void |
getRotationMatrix(float[] matrix) |
void |
getTextInput(com.badlogic.gdx.Input.TextInputListener listener,
java.lang.String title,
java.lang.String text,
java.lang.String hint) |
int |
getX() |
int |
getX(int pointer) |
int |
getY() |
int |
getY(int pointer) |
boolean |
isButtonJustPressed(int button) |
boolean |
isButtonPressed(int button) |
boolean |
isCatchBackKey() |
boolean |
isCatchKey(int keycode) |
boolean |
isCatchMenuKey() |
boolean |
isCursorCatched() |
boolean |
isKeyJustPressed(int key) |
boolean |
isKeyPressed(int key) |
boolean |
isPeripheralAvailable(com.badlogic.gdx.Input.Peripheral peripheral) |
boolean |
isTouched() |
boolean |
isTouched(int pointer) |
boolean |
justTouched() |
void |
setCatchBackKey(boolean catchBack) |
void |
setCatchKey(int keycode,
boolean catchKey) |
void |
setCatchMenuKey(boolean catchMenu) |
void |
setCursorCatched(boolean catched) |
void |
setCursorPosition(int x,
int y) |
void |
setInputProcessor(com.badlogic.gdx.InputProcessor processor) |
void |
setOnscreenKeyboardVisible(boolean visible) |
void |
vibrate(int milliseconds) |
void |
vibrate(long[] pattern,
int repeat) |
void |
windowHandleChanged(long windowHandle) |
public Lwjgl3Mini2DxInput(Lwjgl3Mini2DxWindow window)
public void windowHandleChanged(long windowHandle)
public int getMaxPointers()
getMaxPointers
in interface com.badlogic.gdx.Input
public int getX()
getX
in interface com.badlogic.gdx.Input
public int getX(int pointer)
getX
in interface com.badlogic.gdx.Input
public int getDeltaX()
getDeltaX
in interface com.badlogic.gdx.Input
public int getDeltaX(int pointer)
getDeltaX
in interface com.badlogic.gdx.Input
public int getY()
getY
in interface com.badlogic.gdx.Input
public int getY(int pointer)
getY
in interface com.badlogic.gdx.Input
public int getDeltaY()
getDeltaY
in interface com.badlogic.gdx.Input
public int getDeltaY(int pointer)
getDeltaY
in interface com.badlogic.gdx.Input
public boolean isTouched()
isTouched
in interface com.badlogic.gdx.Input
public boolean justTouched()
justTouched
in interface com.badlogic.gdx.Input
public boolean isTouched(int pointer)
isTouched
in interface com.badlogic.gdx.Input
public float getPressure()
getPressure
in interface com.badlogic.gdx.Input
public float getPressure(int pointer)
getPressure
in interface com.badlogic.gdx.Input
public boolean isButtonPressed(int button)
isButtonPressed
in interface com.badlogic.gdx.Input
public boolean isButtonJustPressed(int button)
isButtonJustPressed
in interface com.badlogic.gdx.Input
public boolean isKeyPressed(int key)
isKeyPressed
in interface com.badlogic.gdx.Input
public boolean isKeyJustPressed(int key)
isKeyJustPressed
in interface com.badlogic.gdx.Input
public void getTextInput(com.badlogic.gdx.Input.TextInputListener listener, java.lang.String title, java.lang.String text, java.lang.String hint)
getTextInput
in interface com.badlogic.gdx.Input
public long getCurrentEventTime()
getCurrentEventTime
in interface com.badlogic.gdx.Input
public void setInputProcessor(com.badlogic.gdx.InputProcessor processor)
setInputProcessor
in interface com.badlogic.gdx.Input
public com.badlogic.gdx.InputProcessor getInputProcessor()
getInputProcessor
in interface com.badlogic.gdx.Input
public void setCursorCatched(boolean catched)
setCursorCatched
in interface com.badlogic.gdx.Input
public boolean isCursorCatched()
isCursorCatched
in interface com.badlogic.gdx.Input
public void setCursorPosition(int x, int y)
setCursorPosition
in interface com.badlogic.gdx.Input
public static int getGdxKeyCode(int lwjglKeyCode)
public static int getGlfwKeyCode(int gdxKeyCode)
public void dispose()
dispose
in interface com.badlogic.gdx.utils.Disposable
public void setCatchBackKey(boolean catchBack)
setCatchBackKey
in interface com.badlogic.gdx.Input
public boolean isCatchBackKey()
isCatchBackKey
in interface com.badlogic.gdx.Input
public void setCatchMenuKey(boolean catchMenu)
setCatchMenuKey
in interface com.badlogic.gdx.Input
public boolean isCatchMenuKey()
isCatchMenuKey
in interface com.badlogic.gdx.Input
public void setCatchKey(int keycode, boolean catchKey)
setCatchKey
in interface com.badlogic.gdx.Input
public boolean isCatchKey(int keycode)
isCatchKey
in interface com.badlogic.gdx.Input
public float getAccelerometerX()
getAccelerometerX
in interface com.badlogic.gdx.Input
public float getAccelerometerY()
getAccelerometerY
in interface com.badlogic.gdx.Input
public float getAccelerometerZ()
getAccelerometerZ
in interface com.badlogic.gdx.Input
public boolean isPeripheralAvailable(com.badlogic.gdx.Input.Peripheral peripheral)
isPeripheralAvailable
in interface com.badlogic.gdx.Input
public int getRotation()
getRotation
in interface com.badlogic.gdx.Input
public com.badlogic.gdx.Input.Orientation getNativeOrientation()
getNativeOrientation
in interface com.badlogic.gdx.Input
public void setOnscreenKeyboardVisible(boolean visible)
setOnscreenKeyboardVisible
in interface com.badlogic.gdx.Input
public void vibrate(int milliseconds)
vibrate
in interface com.badlogic.gdx.Input
public void vibrate(long[] pattern, int repeat)
vibrate
in interface com.badlogic.gdx.Input
public void cancelVibrate()
cancelVibrate
in interface com.badlogic.gdx.Input
public float getAzimuth()
getAzimuth
in interface com.badlogic.gdx.Input
public float getPitch()
getPitch
in interface com.badlogic.gdx.Input
public float getRoll()
getRoll
in interface com.badlogic.gdx.Input
public void getRotationMatrix(float[] matrix)
getRotationMatrix
in interface com.badlogic.gdx.Input
public float getGyroscopeX()
getGyroscopeX
in interface com.badlogic.gdx.Input
public float getGyroscopeY()
getGyroscopeY
in interface com.badlogic.gdx.Input
public float getGyroscopeZ()
getGyroscopeZ
in interface com.badlogic.gdx.Input