summaryrefslogtreecommitdiffstats
path: root/include/ui/Input.h
diff options
context:
space:
mode:
authorDianne Hackborn <hackbod@google.com>2010-06-18 18:09:33 -0700
committerDianne Hackborn <hackbod@google.com>2010-06-22 11:21:50 -0700
commit4d96bb6ae38466a04acfbcce61cb202786239927 (patch)
tree5199b35ac2e3e338ef2f9e54fa89849325760987 /include/ui/Input.h
parentbbc1e52b77453f90050e71328a97ca73a8b8ba08 (diff)
downloadframeworks_native-4d96bb6ae38466a04acfbcce61cb202786239927.zip
frameworks_native-4d96bb6ae38466a04acfbcce61cb202786239927.tar.gz
frameworks_native-4d96bb6ae38466a04acfbcce61cb202786239927.tar.bz2
First stab at attaching native event dispatching.
Provides the basic infrastructure for a NativeActivity's native code to get an object representing its event stream that can be used to read input events. Still work to do, probably some API changes, and reasonable default key handling (so that for example back will still work). Change-Id: I6db891bc35dc9683181d7708eaed552b955a077e
Diffstat (limited to 'include/ui/Input.h')
-rw-r--r--include/ui/Input.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/include/ui/Input.h b/include/ui/Input.h
index 979d6e8..32f85b3 100644
--- a/include/ui/Input.h
+++ b/include/ui/Input.h
@@ -40,6 +40,11 @@ enum {
*/
#define MAX_POINTERS 10
+/*
+ * Declare a concrete type for the NDK's input event forward declaration.
+ */
+struct input_event_t { };
+
namespace android {
/*
@@ -128,8 +133,6 @@ struct PointerCoords {
/*
* Input events.
*/
-struct input_event_t { };
-
class InputEvent : public input_event_t {
public:
virtual ~InputEvent() { }