From 85a3176704b5bfbeece9bd928369fbb76eec7dc6 Mon Sep 17 00:00:00 2001 From: Jeff Brown Date: Wed, 1 Sep 2010 17:01:00 -0700 Subject: Add support for secure views. Added the MotionEvent.FLAG_WINDOW_IS_OBSCURED flag which is set by the input manager whenever another visible window is partly or wholly obscured the target of a touch event so that applications can filter touches accordingly. Added a "filterTouchesWhenObscured" attribute to View which can be used to enable filtering of touches when the view's window is obscured. Change-Id: I936d9c85013fd2d77fb296a600528d30a29027d2 --- native/android/input.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'native/android') diff --git a/native/android/input.cpp b/native/android/input.cpp index c79f913237ae..57f007264670 100644 --- a/native/android/input.cpp +++ b/native/android/input.cpp @@ -84,6 +84,10 @@ int32_t AMotionEvent_getAction(const AInputEvent* motion_event) { return static_cast(motion_event)->getAction(); } +int32_t AMotionEvent_getFlags(const AInputEvent* motion_event) { + return static_cast(motion_event)->getFlags(); +} + int32_t AMotionEvent_getMetaState(const AInputEvent* motion_event) { return static_cast(motion_event)->getMetaState(); } -- cgit v1.2.3-59-g8ed1b