diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/ui/Input.h | 4 | ||||
-rw-r--r-- | include/ui/InputTransport.h | 26 |
2 files changed, 3 insertions, 27 deletions
diff --git a/include/ui/Input.h b/include/ui/Input.h index a2e0ba0..a7d23d4 100644 --- a/include/ui/Input.h +++ b/include/ui/Input.h @@ -43,7 +43,9 @@ enum { /* * Declare a concrete type for the NDK's input event forward declaration. */ -struct AInputEvent { }; +struct AInputEvent { + virtual ~AInputEvent() { } +}; namespace android { diff --git a/include/ui/InputTransport.h b/include/ui/InputTransport.h index 11714d5..226d1d5 100644 --- a/include/ui/InputTransport.h +++ b/include/ui/InputTransport.h @@ -331,30 +331,4 @@ private: } // namespace android -/* - * NDK input queue API. - */ -struct AInputQueue { -public: - /* Creates a consumer associated with an input channel. */ - explicit AInputQueue(const android::sp<android::InputChannel>& channel); - - /* Destroys the consumer and releases its input channel. */ - virtual ~AInputQueue(); - - inline android::InputConsumer& getConsumer() { return mConsumer; } - - android::status_t consume(android::InputEvent** event); - - void setPollLoop(const android::sp<android::PollLoop>& pollLoop) { mPollLoop = pollLoop; } - const android::sp<android::PollLoop> getPollLoop() const { return mPollLoop; } - - virtual void doDefaultKey(android::KeyEvent* keyEvent) = 0; - -private: - android::InputConsumer mConsumer; - android::PreallocatedInputEventFactory mInputEventFactory; - android::sp<android::PollLoop> mPollLoop; -}; - #endif // _UI_INPUT_TRANSPORT_H |