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
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionvoidonDoubleTapGesture(Touch pos) voidonGestureEnded(String id) voidonKeyDown(int key) voidonKeyUp(int key) voidonLongTapGesture(Touch pos) voidonRotationGesture(float angle) voidonScaleGesture(float scale) voidonSwipeGesture(float dirX, float dirY) voidonTouchesBegan(HashMap<Long, Touch> tocuhes) voidonTouchesCancelled(HashMap<Long, Touch> tocuhes) voidonTouchesEnded(HashMap<Long, Touch> tocuhes) voidonTouchesMoved(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)
-