Package com.prineside.luaj.mapping.parts
Class LJ_GDX.InputProcessor_Z.LIP
java.lang.Object
com.prineside.luaj.mapping.InterfaceProxy
com.prineside.luaj.mapping.parts.LJ_GDX.InputProcessor_Z.LIP
- All Implemented Interfaces:
com.badlogic.gdx.InputProcessor
,com.esotericsoftware.kryo.KryoSerializable
- Enclosing class:
- LJ_GDX.InputProcessor_Z
public static class LJ_GDX.InputProcessor_Z.LIP
extends InterfaceProxy
implements com.badlogic.gdx.InputProcessor
-
Field Summary
Fields inherited from class com.prineside.luaj.mapping.InterfaceProxy
luaObj
-
Method Summary
Modifier and TypeMethodDescriptionboolean
keyDown
(int p1) Called when a key was pressedboolean
keyTyped
(char p1) Called when a key was typedboolean
keyUp
(int p1) Called when a key was releasedboolean
mouseMoved
(int p1, int p2) Called when the mouse was moved without any buttons being pressed.boolean
scrolled
(float p1, float p2) Called when the mouse wheel was scrolled.boolean
touchCancelled
(int p1, int p2, int p3, int p4) Called when the touch gesture is cancelled.boolean
touchDown
(int p1, int p2, int p3, int p4) Called when the screen was touched or a mouse button was pressed.boolean
touchDragged
(int p1, int p2, int p3) Called when a finger or the mouse was dragged.boolean
touchUp
(int p1, int p2, int p3, int p4) Called when a finger was lifted or a mouse button was released.Methods inherited from class com.prineside.luaj.mapping.InterfaceProxy
getLuaObj, read, write
-
Method Details
-
keyDown
public boolean keyDown(int p1) Description copied from interface:com.badlogic.gdx.InputProcessor
Called when a key was pressed- Specified by:
keyDown
in interfacecom.badlogic.gdx.InputProcessor
- Parameters:
p1
- one of the constants inInput.Keys
- Returns:
- whether the input was processed
-
keyTyped
public boolean keyTyped(char p1) Description copied from interface:com.badlogic.gdx.InputProcessor
Called when a key was typed- Specified by:
keyTyped
in interfacecom.badlogic.gdx.InputProcessor
- Parameters:
p1
- The character- Returns:
- whether the input was processed
-
keyUp
public boolean keyUp(int p1) Description copied from interface:com.badlogic.gdx.InputProcessor
Called when a key was released- Specified by:
keyUp
in interfacecom.badlogic.gdx.InputProcessor
- Parameters:
p1
- one of the constants inInput.Keys
- Returns:
- whether the input was processed
-
mouseMoved
public boolean mouseMoved(int p1, int p2) Description copied from interface:com.badlogic.gdx.InputProcessor
Called when the mouse was moved without any buttons being pressed. Will not be called on iOS.- Specified by:
mouseMoved
in interfacecom.badlogic.gdx.InputProcessor
- Returns:
- whether the input was processed
-
scrolled
public boolean scrolled(float p1, float p2) Description copied from interface:com.badlogic.gdx.InputProcessor
Called when the mouse wheel was scrolled. Will not be called on iOS.- Specified by:
scrolled
in interfacecom.badlogic.gdx.InputProcessor
- Parameters:
p1
- the horizontal scroll amount, negative or positive depending on the direction the wheel was scrolled.p2
- the vertical scroll amount, negative or positive depending on the direction the wheel was scrolled.- Returns:
- whether the input was processed.
-
touchCancelled
public boolean touchCancelled(int p1, int p2, int p3, int p4) Description copied from interface:com.badlogic.gdx.InputProcessor
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 beInput.Buttons.LEFT
on iOS.- Specified by:
touchCancelled
in interfacecom.badlogic.gdx.InputProcessor
p3
- the pointer for the event.p4
- the button- Returns:
- whether the input was processed
-
touchDown
public boolean touchDown(int p1, int p2, int p3, int p4) Description copied from interface:com.badlogic.gdx.InputProcessor
Called when the screen was touched or a mouse button was pressed. The button parameter will beInput.Buttons.LEFT
on iOS.- Specified by:
touchDown
in interfacecom.badlogic.gdx.InputProcessor
- Parameters:
p1
- The x coordinate, origin is in the upper left cornerp2
- The y coordinate, origin is in the upper left cornerp3
- the pointer for the event.p4
- the button- Returns:
- whether the input was processed
-
touchDragged
public boolean touchDragged(int p1, int p2, int p3) Description copied from interface:com.badlogic.gdx.InputProcessor
Called when a finger or the mouse was dragged.- Specified by:
touchDragged
in interfacecom.badlogic.gdx.InputProcessor
p3
- the pointer for the event.- Returns:
- whether the input was processed
-
touchUp
public boolean touchUp(int p1, int p2, int p3, int p4) Description copied from interface:com.badlogic.gdx.InputProcessor
Called when a finger was lifted or a mouse button was released. The button parameter will beInput.Buttons.LEFT
on iOS.- Specified by:
touchUp
in interfacecom.badlogic.gdx.InputProcessor
p3
- the pointer for the event.p4
- the button- Returns:
- whether the input was processed
-