Skip to content
Browse files

[droid] send ACTION_GESTURE_BEGIN and ACTION_GESTURE_END on multi-tou…

…ch start and end
  • Loading branch information...
1 parent 224e20e commit d3773584b348a60585fd8ca7c8345f65fab109ea @Montellese committed Aug 2, 2012
Showing with 15 additions and 0 deletions.
  1. +12 −0 xbmc/android/activity/AndroidTouch.cpp
  2. +3 −0 xbmc/android/activity/AndroidTouch.h
View
12 xbmc/android/activity/AndroidTouch.cpp
@@ -99,6 +99,18 @@ bool CAndroidTouch::OnSingleTouchStart(float x, float y)
return true;
}
+bool CAndroidTouch::OnMultiTouchStart(float x, float y, int32_t pointers /* = 2 */)
+{
+ XBMC_TouchGesture(ACTION_GESTURE_BEGIN, x, y, 0.0f, 0.0f);
+
+ return true;
+}
+
+bool CAndroidTouch::OnMultiTouchEnd(float x, float y, int32_t pointers /* = 2 */)
+{
+ XBMC_TouchGesture(ACTION_GESTURE_END, 0.0f, 0.0f, 0.0f, 0.0f);
+}
+
bool CAndroidTouch::OnTouchGesturePanStart(float x, float y)
{
XBMC_TouchGesture(ACTION_GESTURE_BEGIN, x, y, 0.0f, 0.0f);
View
3 xbmc/android/activity/AndroidTouch.h
@@ -34,6 +34,9 @@ class CAndroidTouch : protected ITouchHandler
protected:
virtual bool OnSingleTouchStart(float x, float y);
+ virtual bool OnMultiTouchStart(float x, float y, int32_t pointers = 2);
+ virtual bool OnMultiTouchEnd(float x, float y, int32_t pointers = 2);
+
virtual bool OnTouchGesturePanStart(float x, float y);
virtual bool OnTouchGesturePan(float x, float y, float offsetX, float offsetY, float velocityX, float velocityY);
virtual bool OnTouchGesturePanEnd(float x, float y, float offsetX, float offsetY, float velocityX, float velocityY);

0 comments on commit d377358

Please sign in to comment.
Something went wrong with that request. Please try again.