I used Settings.apk and Launcher2.apk to access to Android setting and paired Glass with my Bluetooth keyboard device. Now I can use arrow keys, escape and return to control my glass. If I only use left and right arrows I can not select to some items in Glass but I can select every thing by swipe forward and back on touchpad. Is there a keycode that can be directly mapped to touchpad action? Or does it needs special HID consumer report?
Activate Glass: Tap the touchpad to turn the display on. Swipe forward and back: Swipe forward to move right on your timeline, swipe backwards to move left through items on your timeline. To quickly navigate your timeline, swipe with two fingers, and you'll see a zoomed out view of the timeline.
The currently supported input methods are: Android Keyboard (AOSP) Glass Keyboard. Google Voice Typing.
To turn Glass on, press the power button for a moment. The white power LED behind the button will turn on and remain lit while Glass starts up. Once Glass boots, the display turns on, and a rising chime will sound.
Google Glass is a wearable, voice- and motion-controlled Android device that resembles a pair of eyeglasses and displays information directly in the user's field of vision. Google Glass offers an augmented reality experience by using visual, audio and location-based inputs to provide relevant information.
The KeyEvent
's action you can intercept is ACTION_DOWN
.
The key codes are:
KEYCODE_DPAD_CENTER
(tap) KEYCODE_TAB
(horizontal swipes; isShiftPressed()
returns true
for backward [left] swipes and false
for forward [right] swipes)KEYCODE_CAMERA
(camera button)KEYCODE_BACK
(swipe down, acts like back button)There is no key code equivalent for a swipe up.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With