RemoteInput at the given ip/port. Instantiate this
and call sendUpdate() periodically.
| Modifier and Type | Field and Description |
|---|---|
| public static final int | |
| public static final int | |
| private boolean | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| private DataOutputStream | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | |
| public boolean | keyDown(int keycode)
Implements com. Called when a key was pressed |
| public boolean | keyTyped(char character)
Implements com. Called when a key was typed |
| public boolean | |
| public boolean | mouseMoved(int x, int y)
Implements com. Called when the mouse was moved without any buttons being pressed. |
| public boolean | scrolled(float amountX, float amountY)
Implements com. Called when the mouse wheel was scrolled. |
| public void | |
| public boolean | touchCancelled(int screenX, int screenY, int pointer, int button)
Implements com. Called when the touch gesture is cancelled. |
| public boolean | touchDown(int x, int y, int pointer, int button)
Implements com. Called when the screen was touched or a mouse button was pressed. |
| public boolean | touchDragged(int x, int y, int pointer)
Implements com. Called when a finger or the mouse was dragged. |
| public boolean | touchUp(int x, int y, int pointer, int button)
Implements com. Called when a finger was lifted or a mouse button was released. |
| ACCEL | back to summary |
|---|---|
| public static final int ACCEL | |
| COMPASS | back to summary |
|---|---|
| public static final int COMPASS | |
| connected | back to summary |
|---|---|
| private boolean connected | |
| GYRO | back to summary |
|---|---|
| public static final int GYRO | |
| KEY_DOWN | back to summary |
|---|---|
| public static final int KEY_DOWN | |
| KEY_TYPED | back to summary |
|---|---|
| public static final int KEY_TYPED | |
| KEY_UP | back to summary |
|---|---|
| public static final int KEY_UP | |
| out | back to summary |
|---|---|
| private DataOutputStream out | |
| SIZE | back to summary |
|---|---|
| public static final int SIZE | |
| TOUCH_DOWN | back to summary |
|---|---|
| public static final int TOUCH_DOWN | |
| TOUCH_DRAGGED | back to summary |
|---|---|
| public static final int TOUCH_DRAGGED | |
| TOUCH_UP | back to summary |
|---|---|
| public static final int TOUCH_UP | |
| RemoteSender | back to summary |
|---|---|
| public RemoteSender(String ip, int port) | |
| isConnected | back to summary |
|---|---|
| public boolean isConnected() | |
| keyDown | back to summary |
|---|---|
| public boolean keyDown(int keycode) Implements com. Doc from com. Called when a key was pressed
| |
| keyTyped | back to summary |
|---|---|
| public boolean keyTyped(char character) Implements com. Doc from com. Called when a key was typed
| |
| keyUp | back to summary |
|---|---|
| public boolean keyUp(int keycode) Implements com. Doc from com. Called when a key was released
| |
| mouseMoved | back to summary |
|---|---|
| public boolean mouseMoved(int x, int y) Implements com. Doc from com. Called when the mouse was moved without any buttons being pressed. Will not be called on iOS.
| |
| scrolled | back to summary |
|---|---|
| public boolean scrolled(float amountX, float amountY) Implements com. Doc from com. Called when the mouse wheel was scrolled. Will not be called on iOS.
| |
| sendUpdate | back to summary |
|---|---|
| public void sendUpdate() | |
| touchCancelled | back to summary |
|---|---|
| public boolean touchCancelled(int screenX, int screenY, int pointer, int button) Implements com. Doc from com. Called when the touch gesture is cancelled. Reason may be from OS interruption to touch becoming a large surface such as
the user cheek). Relevant on Android and iOS only. The button parameter will be
| |
| touchDown | back to summary |
|---|---|
| public boolean touchDown(int x, int y, int pointer, int button) Implements com. Doc from com. Called when the screen was touched or a mouse button was pressed. The button parameter will be
| |
| touchDragged | back to summary |
|---|---|
| public boolean touchDragged(int x, int y, int pointer) Implements com. Doc from com. Called when a finger or the mouse was dragged.
| |
| touchUp | back to summary |
|---|---|
| public boolean touchUp(int x, int y, int pointer, int button) Implements com. Doc from com. Called when a finger was lifted or a mouse button was released. The button parameter will be
| |