Improved picture zooming and rotating on touch devices #1268

Merged
merged 12 commits into from Sep 3, 2012
Commits on Aug 10, 2012
  1. refactor picture zooming

    Montellese committed Aug 2, 2012
    The new implementation supports both zooming by fixed levels (used for remote
    controls) and zooming by an arbitrary factor which makes zooming/pinching
    with touch gestures much more intuitive. Nothing changes for zooming by fixed
    levels but for zooming by an arbitrary factor every zoom/pinch must start by
    sending the ACTION_GESTURE_BEGIN action and end by sending the
    ACTION_GESTURE_END action. In between (as it was already possible before, the
    ACTION_GESTURE_ZOOM can be sent containing an arbitrary floating-point zoom
    factor to perform zoom/pinch actions.
  2. refactor picture rotating

    Montellese committed Aug 2, 2012
    The new implementation supports both rotating by fixed angles of +90 degree
    (used for remote controls) and rotating by an arbitrary angle which makes
    rotating with touch gestures much more intuitive. Nothing changes for zooming
    by fixed angles. For rotating by an arbitrary factor every rotation must start
    by sending the ACTION_GESTURE_BEGIN action and end by sending the
    ACTION_GESTURE_END action. In between the ACTION_GESTURE_ROTATE can be sent
    containing an arbitrary floating-point angle (in degrees) to perform rotation
    actions.
  3. CGUIWindowSlideShow: snap back to a multiple of 90 degrees if the rot…

    Montellese committed Aug 3, 2012
    …ation angle is within +/- 10 degrees