summaryrefslogtreecommitdiff
path: root/include/ui/Input.h
diff options
context:
space:
mode:
author Dianne Hackborn <hackbod@google.com> 2010-06-18 18:09:33 -0700
committer Dianne Hackborn <hackbod@google.com> 2010-06-22 11:21:50 -0700
commita95e4cb62f3642cb190d032dbf7dc40d9ecc6973 (patch)
treeae4437444a3d3ebeff48dabfd1e9c11fc14620ac /include/ui/Input.h
parentef730e6ececa96a3e0576140eea707f7c48cd66c (diff)
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 979d6e8f42ba..32f85b3b6eaa 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() { }