diff options
Diffstat (limited to 'src/com/android')
-rw-r--r-- | src/com/android/camera/VideoModule.java | 9 | ||||
-rw-r--r-- | src/com/android/camera/VideoUI.java | 16 |
2 files changed, 25 insertions, 0 deletions
diff --git a/src/com/android/camera/VideoModule.java b/src/com/android/camera/VideoModule.java index b85f91806..ee06289f2 100644 --- a/src/com/android/camera/VideoModule.java +++ b/src/com/android/camera/VideoModule.java @@ -1202,6 +1202,12 @@ public class VideoModule implements CameraModule, } switch (keyCode) { + case KeyEvent.KEYCODE_VOLUME_UP: + mUI.onScaleStepResize(true); + return true; + case KeyEvent.KEYCODE_VOLUME_DOWN: + mUI.onScaleStepResize(false); + return true; case KeyEvent.KEYCODE_CAMERA: if (event.getRepeatCount() == 0) { mUI.clickShutter(); @@ -1224,6 +1230,9 @@ public class VideoModule implements CameraModule, @Override public boolean onKeyUp(int keyCode, KeyEvent event) { switch (keyCode) { + case KeyEvent.KEYCODE_VOLUME_UP: + case KeyEvent.KEYCODE_VOLUME_DOWN: + return true; case KeyEvent.KEYCODE_CAMERA: mUI.pressShutter(false); return true; diff --git a/src/com/android/camera/VideoUI.java b/src/com/android/camera/VideoUI.java index 321f6d506..69dd4c629 100644 --- a/src/com/android/camera/VideoUI.java +++ b/src/com/android/camera/VideoUI.java @@ -22,6 +22,7 @@ import org.codeaurora.snapcam.R; import android.content.res.Configuration; import android.graphics.Bitmap; +import android.graphics.Canvas; import android.graphics.Color; import android.graphics.Point; import android.graphics.drawable.ColorDrawable; @@ -989,6 +990,21 @@ public class VideoUI implements PieRenderer.PieListener, return mCameraControls.getVisibility() == View.VISIBLE; } + public boolean onScaleStepResize(boolean direction) + { + if(mGestures != null){ + return mGestures.onScaleStepResize(direction); + } + return false; + } + + public void onScaleChangeDraw(Canvas canvas) + { + if(mGestures != null){ + mGestures.onScaleChangeDraw(canvas); + } + } + @Override public void onDisplayChanged() { mCameraControls.checkLayoutFlip(); |