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
This commit is contained in:
Dianne Hackborn
2010-06-18 18:09:33 -07:00
parent ef730e6ece
commit a95e4cb62f
19 changed files with 606 additions and 175 deletions

View File

@@ -1,5 +1,6 @@
package com.android.internal.view;
import android.view.InputConsumer;
import android.view.SurfaceHolder;
/** hahahah */
@@ -8,4 +9,5 @@ public interface RootViewSurfaceTaker {
void setSurfaceType(int type);
void setSurfaceFormat(int format);
void setSurfaceKeepScreenOn(boolean keepOn);
InputConsumer.Callback willYouTakeTheInputConsumer();
}