diff options
author | 2012-12-19 02:12:39 -0800 | |
---|---|---|
committer | 2012-12-19 02:12:39 -0800 | |
commit | 1f5708e8fd63460455b0a646110a84892b37755d (patch) | |
tree | 4494582cb612456eaaa76811edbfd23602c8b7f6 /java/src/com/android/inputmethod/event/HardwareKeyboardEventDecoder.java | |
parent | cc17479453db1bd6416f558bd4c3e3027a5e8225 (diff) | |
parent | cff28c5d5db3e0c3e97149519a3f705150aeb224 (diff) | |
download | latinime-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/HardwareKeyboardEventDecoder.java')
-rw-r--r-- | java/src/com/android/inputmethod/event/HardwareKeyboardEventDecoder.java | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/java/src/com/android/inputmethod/event/HardwareKeyboardEventDecoder.java b/java/src/com/android/inputmethod/event/HardwareKeyboardEventDecoder.java new file mode 100644 index 000000000..9aa6a273e --- /dev/null +++ b/java/src/com/android/inputmethod/event/HardwareKeyboardEventDecoder.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; + +import android.view.KeyEvent; + +/** + * A hardware event decoder for a hardware qwerty-ish keyboard. + */ +public class HardwareKeyboardEventDecoder implements HardwareEventDecoder { + final int mDeviceId; + + public HardwareKeyboardEventDecoder(final int deviceId) { + mDeviceId = deviceId; + // TODO: get the layout for this hardware keyboard + } + + @Override + public Event decodeHardwareKey(KeyEvent keyEvent) { + return Event.obtainEvent(); + } +} |