aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/event/Event.java
diff options
context:
space:
mode:
authorJean Chalard <jchalard@google.com>2012-12-19 02:12:39 -0800
committerAndroid Git Automerger <android-git-automerger@android.com>2012-12-19 02:12:39 -0800
commit1f5708e8fd63460455b0a646110a84892b37755d (patch)
tree4494582cb612456eaaa76811edbfd23602c8b7f6 /java/src/com/android/inputmethod/event/Event.java
parentcc17479453db1bd6416f558bd4c3e3027a5e8225 (diff)
parentcff28c5d5db3e0c3e97149519a3f705150aeb224 (diff)
downloadlatinime-1f5708e8fd63460455b0a646110a84892b37755d.tar.gz
latinime-1f5708e8fd63460455b0a646110a84892b37755d.tar.xz
latinime-1f5708e8fd63460455b0a646110a84892b37755d.zip
am cff28c5d: Add skeleton classes for hardware event flow (B1)
* commit 'cff28c5d5db3e0c3e97149519a3f705150aeb224': Add skeleton classes for hardware event flow (B1)
Diffstat (limited to 'java/src/com/android/inputmethod/event/Event.java')
-rw-r--r--java/src/com/android/inputmethod/event/Event.java36
1 files changed, 36 insertions, 0 deletions
diff --git a/java/src/com/android/inputmethod/event/Event.java b/java/src/com/android/inputmethod/event/Event.java
new file mode 100644
index 000000000..c96a3362d
--- /dev/null
+++ b/java/src/com/android/inputmethod/event/Event.java
@@ -0,0 +1,36 @@
+/*
+ * Copyright (C) 2012 The Android Open Source Project
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.android.inputmethod.event;
+
+/**
+ * Class representing a generic input event as handled by Latin IME.
+ *
+ * This contains information about the origin of the event, but it is generalized and should
+ * represent a software keypress, hardware keypress, or d-pad move alike.
+ * Very importantly, this does not necessarily result in inputting one character, or even anything
+ * at all - it may be a dead key, it may be a partial input, it may be a special key on the
+ * keyboard, it may be a cancellation of a keypress (e.g. in a soft keyboard the finger of the
+ * user has slid out of the key), etc. It may also be a batch input from a gesture or handwriting
+ * for example.
+ * The combiner should figure out what to do with this.
+ */
+public class Event {
+ static Event obtainEvent() {
+ // TODO: create an event pool instead
+ return new Event();
+ }
+}