Package com.banuba.sdk.effect_player
Interface InputManager
- All Known Implementing Classes:
InputManager.CppProxy
public interface InputManager
Class to accepts touches from user.
Key in each map is id of an event.
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
onDoubleTapGesture
(Touch pos) void
onGestureEnded
(String id) void
onKeyDown
(int key) void
onKeyUp
(int key) void
onLongTapGesture
(Touch pos) void
onRotationGesture
(float angle) void
onScaleGesture
(float scale) void
onSwipeGesture
(float dirX, float dirY) void
onTouchesBegan
(HashMap<Long, Touch> tocuhes) void
onTouchesCancelled
(HashMap<Long, Touch> tocuhes) void
onTouchesEnded
(HashMap<Long, Touch> tocuhes) void
onTouchesMoved
(HashMap<Long, Touch> tocuhes)
-
Method Details
-
onTouchesBegan
-
onTouchesMoved
-
onTouchesEnded
-
onTouchesCancelled
-
onRotationGesture
void onRotationGesture(float angle) -
onScaleGesture
void onScaleGesture(float scale) -
onSwipeGesture
void onSwipeGesture(float dirX, float dirY) -
onDoubleTapGesture
-
onLongTapGesture
-
onGestureEnded
-
onKeyDown
void onKeyDown(int key) - Parameters:
key
- Values are listed in https://www.glfw.org/docs/3.3/group__keys.html
-
onKeyUp
void onKeyUp(int key)
-