Input.Buttons, Input.Keys, Input.Orientation, Input.Peripheral, Input.TextInputListener| 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) |
float |
getGyroscopeX() |
float |
getGyroscopeY() |
float |
getGyroscopeZ() |
InputProcessor |
getInputProcessor() |
org.robovm.apple.uikit.UITextField |
getKeyboardTextField() |
int |
getMaxPointers() |
Input.Orientation |
getNativeOrientation() |
float |
getPitch() |
float |
getPressure() |
float |
getPressure(int pointer) |
float |
getRoll() |
int |
getRotation() |
void |
getRotationMatrix(float[] matrix) |
void |
getTextInput(Input.TextInputListener listener,
String title,
String text,
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(Input.Peripheral peripheral) |
boolean |
isTouched() |
boolean |
isTouched(int pointer) |
boolean |
justTouched() |
void |
onTouch(long touches)
Records touch events
|
void |
processEvents()
Process all touch events that have been registered on #onTouch().
|
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(InputProcessor processor) |
void |
setKeyboardCloseOnReturnKey(boolean shouldClose)
Set the keyboard to close when the UITextField return key is pressed
|
void |
setOnscreenKeyboardVisible(boolean visible) |
void |
setupPeripherals()
Initializes peripherals (such as compass or accelerometer)
|
void |
vibrate(int milliseconds) |
void |
vibrate(long[] pattern,
int repeat) |
public DefaultIOSInput(IOSApplication app)
public void setupPeripherals()
IOSInputsetupPeripherals in interface IOSInputpublic float getAccelerometerX()
getAccelerometerX in interface Inputpublic float getAccelerometerY()
getAccelerometerY in interface Inputpublic float getAccelerometerZ()
getAccelerometerZ in interface Inputpublic float getAzimuth()
getAzimuth in interface Inputpublic void getRotationMatrix(float[] matrix)
getRotationMatrix in interface Inputpublic int getMaxPointers()
getMaxPointers in interface Inputpublic boolean justTouched()
justTouched in interface Inputpublic float getPressure()
getPressure in interface Inputpublic float getPressure(int pointer)
getPressure in interface Inputpublic boolean isButtonPressed(int button)
isButtonPressed in interface Inputpublic boolean isButtonJustPressed(int button)
isButtonJustPressed in interface Inputpublic boolean isKeyPressed(int key)
isKeyPressed in interface Inputpublic boolean isKeyJustPressed(int key)
isKeyJustPressed in interface Inputpublic void getTextInput(Input.TextInputListener listener, String title, String text, String hint)
getTextInput in interface Inputpublic void setOnscreenKeyboardVisible(boolean visible)
setOnscreenKeyboardVisible in interface Inputpublic void setKeyboardCloseOnReturnKey(boolean shouldClose)
shouldClose - Whether or not the keyboard should clsoe on return key presspublic org.robovm.apple.uikit.UITextField getKeyboardTextField()
public void cancelVibrate()
cancelVibrate in interface Inputpublic long getCurrentEventTime()
getCurrentEventTime in interface Inputpublic void setCatchBackKey(boolean catchBack)
setCatchBackKey in interface Inputpublic boolean isCatchBackKey()
isCatchBackKey in interface Inputpublic void setCatchMenuKey(boolean catchMenu)
setCatchMenuKey in interface Inputpublic boolean isCatchMenuKey()
isCatchMenuKey in interface Inputpublic void setCatchKey(int keycode,
boolean catchKey)
setCatchKey in interface Inputpublic boolean isCatchKey(int keycode)
isCatchKey in interface Inputpublic void setInputProcessor(InputProcessor processor)
setInputProcessor in interface Inputpublic InputProcessor getInputProcessor()
getInputProcessor in interface Inputpublic boolean isPeripheralAvailable(Input.Peripheral peripheral)
isPeripheralAvailable in interface Inputpublic int getRotation()
getRotation in interface Inputpublic Input.Orientation getNativeOrientation()
getNativeOrientation in interface Inputpublic void setCursorCatched(boolean catched)
setCursorCatched in interface Inputpublic boolean isCursorCatched()
isCursorCatched in interface Inputpublic void setCursorPosition(int x,
int y)
setCursorPosition in interface Inputpublic void onTouch(long touches)
IOSInputpublic void processEvents()
IOSInputprocessEvents in interface IOSInputpublic float getGyroscopeX()
getGyroscopeX in interface Inputpublic float getGyroscopeY()
getGyroscopeY in interface Inputpublic float getGyroscopeZ()
getGyroscopeZ in interface InputCopyright © 2020. All rights reserved.