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.
  • Method Details

    • onTouchesBegan

      void onTouchesBegan(@NonNull HashMap<Long,Touch> tocuhes)
    • onTouchesMoved

      void onTouchesMoved(@NonNull HashMap<Long,Touch> tocuhes)
    • onTouchesEnded

      void onTouchesEnded(@NonNull HashMap<Long,Touch> tocuhes)
    • onTouchesCancelled

      void onTouchesCancelled(@NonNull HashMap<Long,Touch> tocuhes)
    • onRotationGesture

      void onRotationGesture(float angle)
    • onScaleGesture

      void onScaleGesture(float scale)
    • onSwipeGesture

      void onSwipeGesture(float dirX, float dirY)
    • onDoubleTapGesture

      void onDoubleTapGesture(@NonNull Touch pos)
    • onLongTapGesture

      void onLongTapGesture(@NonNull Touch pos)
    • onGestureEnded

      void onGestureEnded(@NonNull String id)
    • 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)