Package com.jme3.input
Interface TouchInput
- All Superinterfaces:
Input
- All Known Implementing Classes:
AndroidTouchInput
,AndroidTouchInput14
,IosInputHandler
A specific API for interfacing with smartphone touch devices
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
No filter, get all eventsstatic final int
Escape key.static final int
Home keystatic final int
Context Menu key.static final int
Search key.static final int
Volume down key.static final int
Volume up key. -
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
void
setOmitHistoricEvents
(boolean dontSendHistory) Set if historic android events should be transmitted, can be used to get better performance and less memvoid
setSimulateKeyboard
(boolean simulate) Set if keyboard events should be generatedvoid
setSimulateMouse
(boolean simulate) Set if mouse events should be generatedMethods inherited from interface com.jme3.input.Input
destroy, getInputTimeNanos, initialize, isInitialized, setInputListener, update
-
Field Details
-
ALL
static final int ALLNo filter, get all events- See Also:
-
KEYCODE_HOME
static final int KEYCODE_HOMEHome key- See Also:
-
KEYCODE_BACK
static final int KEYCODE_BACKEscape key.- See Also:
-
KEYCODE_MENU
static final int KEYCODE_MENUContext Menu key.- See Also:
-
KEYCODE_SEARCH
static final int KEYCODE_SEARCHSearch key.- See Also:
-
KEYCODE_VOLUME_UP
static final int KEYCODE_VOLUME_UPVolume up key.- See Also:
-
KEYCODE_VOLUME_DOWN
static final int KEYCODE_VOLUME_DOWNVolume down key.- See Also:
-
-
Method Details
-
setSimulateMouse
void setSimulateMouse(boolean simulate) Set if mouse events should be generated- Parameters:
simulate
- if mouse events should be generated
-
isSimulateMouse
boolean isSimulateMouse()- Returns:
- true if mouse event simulation is enabled, false otherwise.
-
setSimulateKeyboard
void setSimulateKeyboard(boolean simulate) Set if keyboard events should be generated- Parameters:
simulate
- if keyboard events should be generated
-
isSimulateKeyboard
boolean isSimulateKeyboard()- Returns:
- true if key event simulation is enabled, false otherwise.
-
setOmitHistoricEvents
void setOmitHistoricEvents(boolean dontSendHistory) Set if historic android events should be transmitted, can be used to get better performance and less mem- Parameters:
dontSendHistory
- turn of historic events if true, false else and default- See Also:
-