[Android] Invert Y axis for viewpoint control
Geoffrey Métais
git at videolan.org
Thu Dec 1 16:46:25 CET 2016
vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Thu Dec 1 16:45:48 2016 +0100| [3685a25bc6d8cfd47b043e250529783262481940] | committer: Geoffrey Métais
Invert Y axis for viewpoint control
> https://code.videolan.org/videolan/vlc-android/commit/3685a25bc6d8cfd47b043e250529783262481940
---
vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java b/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
index f70d679..6367a48 100644
--- a/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
@@ -2102,7 +2102,7 @@ public class VideoPlayerActivity extends AppCompatActivity implements IVLCVout.C
mTouchX = event.getRawX();
mTouchAction = TOUCH_MOVE;
float yaw = mFov * -x_changed/(float)mSurfaceXDisplayRange;
- float pitch = mFov * y_changed/(float)mSurfaceYDisplayRange;
+ float pitch = mFov * -y_changed/(float)mSurfaceYDisplayRange;
mService.updateViewpoint(yaw, pitch, 0, 0, false);
}
break;
More information about the Android
mailing list