Class ActionManagerMT

    • Constructor Detail

      • ActionManagerMT

        public ActionManagerMT()
    • Method Detail

      • startSparshUIService

        private void startSparshUIService​(boolean isSimulated)
      • getEventName

        private static java.lang.String getEventName​(int i)
      • logEvent

        private void logEvent​(java.lang.String type,
                              javajs.util.P3 pt)
      • mouseAction

        public void mouseAction​(int mode,
                                long time,
                                int x,
                                int y,
                                int count,
                                int modifiers)
        Specified by:
        mouseAction in interface javajs.api.EventManager
        Overrides:
        mouseAction in class ActionManager
        Parameters:
        mode - MOVED PRESSED DRAGGED RELEASED CLICKED WHEELED
        modifiers - LEFT RIGHT MIDDLE WHEEL SHIFT ALT CTRL
      • getDegrees

        protected float getDegrees​(float delta,
                                   boolean isX)
        Description copied from class: ActionManager
        Transform a screen pixel change to an angular change such that a full sweep of the dimension (up to 500 pixels) corresponds to 180 degrees of rotation.
        Overrides:
        getDegrees in class ActionManager
        Returns:
        desired scaled rotation, in degrees