| Index: runtime/embedders/android/input_service.cc
|
| diff --git a/samples/android_sample/jni/input_service.cc b/runtime/embedders/android/input_service.cc
|
| similarity index 91%
|
| rename from samples/android_sample/jni/input_service.cc
|
| rename to runtime/embedders/android/input_service.cc
|
| index f09c1c2cbd6405f2a13a1bbf7cb109c576120e81..68410f1c64aa47ea224b3a28a514a0d4b1f9f3da 100644
|
| --- a/samples/android_sample/jni/input_service.cc
|
| +++ b/runtime/embedders/android/input_service.cc
|
| @@ -5,8 +5,8 @@
|
| #include <android_native_app_glue.h>
|
| #include <cmath>
|
|
|
| -#include "jni/input_service.h"
|
| -#include "jni/log.h"
|
| +#include "embedders/android/input_service.h"
|
| +#include "embedders/android/log.h"
|
|
|
| InputService::InputService(android_app* application,
|
| VMGlue* vm_glue,
|
| @@ -97,13 +97,14 @@ bool InputService::OnKeyEvent(AInputEvent* event) {
|
| * that have occurred. */
|
| int32_t repeat = AKeyEvent_getRepeatCount(event);
|
|
|
| - /* Get the time of the most recent key down event, in the
|
| - * java.lang.System.nanoTime() time base. If this is a down event,
|
| - * this will be the same as eventTime.
|
| - * Note that when chording keys, this value is the down time of the most
|
| - * recently pressed key, which may not be the same physical key of this
|
| - * event. */
|
| - int64_t key_down_time = AKeyEvent_getDownTime(event);
|
| + /* Get the time of the most recent key down event, in the
|
| + * java.lang.System.nanoTime() time base. If this is a down event,
|
| + * this will be the same as eventTime.
|
| + * Note that when chording keys, this value is the down time of the most
|
| + * recently pressed key, which may not be the same physical key of this
|
| + * event. */
|
| + // TODO(gram): Use or remove this.
|
| + // int64_t key_down_time = AKeyEvent_getDownTime(event);
|
|
|
| /* Get the time this event occurred, in the
|
| * java.lang.System.nanoTime() time base. */
|
|
|