diff options
author | 2012-12-06 20:35:59 +0900 | |
---|---|---|
committer | 2012-12-19 17:47:29 +0900 | |
commit | cff28c5d5db3e0c3e97149519a3f705150aeb224 (patch) | |
tree | 4494582cb612456eaaa76811edbfd23602c8b7f6 /java/src/com/android/inputmethod/event/Event.java | |
parent | 45239029ceb876462e0d3f654c6b24ac9a9ed8af (diff) | |
download | latinime-cff28c5d5db3e0c3e97149519a3f705150aeb224.tar.gz latinime-cff28c5d5db3e0c3e97149519a3f705150aeb224.tar.xz latinime-cff28c5d5db3e0c3e97149519a3f705150aeb224.zip |
Add skeleton classes for hardware event flow (B1)
Bug: 5037589
Change-Id: Id8eea0e2bd00dd339a1efb4b0542e4c091a84195
Diffstat (limited to 'java/src/com/android/inputmethod/event/Event.java')
-rw-r--r-- | java/src/com/android/inputmethod/event/Event.java | 36 |
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(); + } +} |