| Modifier and Type | Field and Description |
|---|---|
protected UIAccelerometerDelegate |
accelerometerDelegate |
| Constructor and Description |
|---|
DefaultIOSInput(IOSApplication app) |
| Modifier and Type | Method and Description |
|---|---|
void |
cancelVibrate() |
float |
getAccelerometerX() |
float |
getAccelerometerY() |
float |
getAccelerometerZ() |
float |
getAzimuth() |
long |
getCurrentEventTime() |
int |
getDeltaX() |
int |
getDeltaX(int pointer) |
int |
getDeltaY() |
int |
getDeltaY(int pointer) |
protected int |
getGdxKeyCode(org.robovm.apple.uikit.UIKey key) |
float |
getGyroscopeX() |
float |
getGyroscopeY() |
float |
getGyroscopeZ() |
com.badlogic.gdx.InputProcessor |
getInputProcessor() |
protected org.robovm.apple.uikit.UIKeyboardType |
getIosInputType(com.badlogic.gdx.Input.OnscreenKeyboardType type) |
org.robovm.apple.uikit.UITextField |
getKeyboardTextField() |
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) |
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) |
int |
getX() |
int |
getX(int pointer) |
int |
getY() |
int |
getY(int pointer) |
boolean |
isButtonJustPressed(int button) |
boolean |
isButtonPressed(int button) |
boolean |
isCursorCatched() |
boolean |
isPeripheralAvailable(com.badlogic.gdx.Input.Peripheral peripheral) |
boolean |
isTouched() |
boolean |
isTouched(int pointer) |
boolean |
justTouched() |
boolean |
onKey(org.robovm.apple.uikit.UIKey key,
boolean down) |
void |
onTouch(long touches)
Records touch events
|
void |
processEvents()
Process all touch events that have been registered on #onTouch().
|
void |
setCursorCatched(boolean catched) |
void |
setCursorPosition(int x,
int y) |
void |
setInputProcessor(com.badlogic.gdx.InputProcessor processor) |
void |
setKeyboardCloseOnReturnKey(boolean shouldClose)
Set the keyboard to close when the UITextField return key is pressed
|
void |
setOnscreenKeyboardVisible(boolean visible) |
void |
setOnscreenKeyboardVisible(boolean visible,
com.badlogic.gdx.Input.OnscreenKeyboardType type) |
protected void |
setupAccelerometer() |
protected void |
setupCompass() |
void |
setupPeripherals()
Initializes peripherals (such as compass or accelerometer)
|
void |
vibrate(int milliseconds) |
void |
vibrate(long[] pattern,
int repeat) |
isCatchBackKey, isCatchKey, isCatchMenuKey, isKeyJustPressed, isKeyPressed, setCatchBackKey, setCatchKey, setCatchMenuKeyprotected UIAccelerometerDelegate accelerometerDelegate
public DefaultIOSInput(IOSApplication app)
public void setupPeripherals()
IOSInputsetupPeripherals in interface IOSInputprotected void setupCompass()
protected void setupAccelerometer()
public float getAccelerometerX()
getAccelerometerX in interface com.badlogic.gdx.Inputpublic float getAccelerometerY()
getAccelerometerY in interface com.badlogic.gdx.Inputpublic float getAccelerometerZ()
getAccelerometerZ in interface com.badlogic.gdx.Inputpublic float getAzimuth()
getAzimuth in interface com.badlogic.gdx.Inputpublic float getPitch()
getPitch in interface com.badlogic.gdx.Inputpublic float getRoll()
getRoll in interface com.badlogic.gdx.Inputpublic void getRotationMatrix(float[] matrix)
getRotationMatrix in interface com.badlogic.gdx.Inputpublic int getMaxPointers()
getMaxPointers in interface com.badlogic.gdx.Inputpublic int getX()
getX in interface com.badlogic.gdx.Inputpublic int getX(int pointer)
getX in interface com.badlogic.gdx.Inputpublic int getDeltaX()
getDeltaX in interface com.badlogic.gdx.Inputpublic int getDeltaX(int pointer)
getDeltaX in interface com.badlogic.gdx.Inputpublic int getY()
getY in interface com.badlogic.gdx.Inputpublic int getY(int pointer)
getY in interface com.badlogic.gdx.Inputpublic int getDeltaY()
getDeltaY in interface com.badlogic.gdx.Inputpublic int getDeltaY(int pointer)
getDeltaY in interface com.badlogic.gdx.Inputpublic boolean isTouched()
isTouched in interface com.badlogic.gdx.Inputpublic boolean justTouched()
justTouched in interface com.badlogic.gdx.Inputpublic boolean isTouched(int pointer)
isTouched in interface com.badlogic.gdx.Inputpublic float getPressure()
getPressure in interface com.badlogic.gdx.Inputpublic float getPressure(int pointer)
getPressure in interface com.badlogic.gdx.Inputpublic boolean isButtonPressed(int button)
isButtonPressed in interface com.badlogic.gdx.Inputpublic boolean isButtonJustPressed(int button)
isButtonJustPressed in interface com.badlogic.gdx.Inputpublic 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.Inputpublic 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)
getTextInput in interface com.badlogic.gdx.Inputpublic void setOnscreenKeyboardVisible(boolean visible)
setOnscreenKeyboardVisible in interface com.badlogic.gdx.Inputpublic void setOnscreenKeyboardVisible(boolean visible,
com.badlogic.gdx.Input.OnscreenKeyboardType type)
setOnscreenKeyboardVisible in interface com.badlogic.gdx.Inputprotected org.robovm.apple.uikit.UIKeyboardType getIosInputType(com.badlogic.gdx.Input.OnscreenKeyboardType type)
public void setKeyboardCloseOnReturnKey(boolean shouldClose)
shouldClose - Whether or not the keyboard should clsoe on return key presspublic org.robovm.apple.uikit.UITextField getKeyboardTextField()
public void vibrate(int milliseconds)
vibrate in interface com.badlogic.gdx.Inputpublic void vibrate(long[] pattern,
int repeat)
vibrate in interface com.badlogic.gdx.Inputpublic void cancelVibrate()
cancelVibrate in interface com.badlogic.gdx.Inputpublic long getCurrentEventTime()
getCurrentEventTime in interface com.badlogic.gdx.Inputpublic void setInputProcessor(com.badlogic.gdx.InputProcessor processor)
setInputProcessor in interface com.badlogic.gdx.Inputpublic com.badlogic.gdx.InputProcessor getInputProcessor()
getInputProcessor in interface com.badlogic.gdx.Inputpublic boolean isPeripheralAvailable(com.badlogic.gdx.Input.Peripheral peripheral)
isPeripheralAvailable in interface com.badlogic.gdx.Inputpublic int getRotation()
getRotation in interface com.badlogic.gdx.Inputpublic com.badlogic.gdx.Input.Orientation getNativeOrientation()
getNativeOrientation in interface com.badlogic.gdx.Inputpublic void setCursorCatched(boolean catched)
setCursorCatched in interface com.badlogic.gdx.Inputpublic boolean isCursorCatched()
isCursorCatched in interface com.badlogic.gdx.Inputpublic void setCursorPosition(int x,
int y)
setCursorPosition in interface com.badlogic.gdx.Inputpublic void onTouch(long touches)
IOSInputpublic boolean onKey(org.robovm.apple.uikit.UIKey key,
boolean down)
public void processEvents()
IOSInputprocessEvents in interface IOSInputpublic float getGyroscopeX()
getGyroscopeX in interface com.badlogic.gdx.Inputpublic float getGyroscopeY()
getGyroscopeY in interface com.badlogic.gdx.Inputpublic float getGyroscopeZ()
getGyroscopeZ in interface com.badlogic.gdx.Inputprotected int getGdxKeyCode(org.robovm.apple.uikit.UIKey key)