OSDN Git Service

Add method to set action button on MotionEvent
authorMichael Wright <michaelwr@google.com>
Wed, 17 Jun 2015 20:06:54 +0000 (21:06 +0100)
committerMichael Wright <michaelwr@google.com>
Wed, 17 Jun 2015 20:06:54 +0000 (21:06 +0100)
Change-Id: I09f00fa1c2b793a88772f67fe195860ec436179d

include/input/Input.h

index 1da8356..4a67f47 100644 (file)
@@ -383,6 +383,8 @@ public:
 
     inline int32_t getActionButton() const { return mActionButton; }
 
+    inline void setActionButton(int32_t button) { mActionButton = button; }
+
     inline float getXOffset() const { return mXOffset; }
 
     inline float getYOffset() const { return mYOffset; }