Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the corresponding keyboard keys to Google Glass touchpad actions?

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?

like image 908
Deqing Avatar asked Aug 07 '13 04:08

Deqing


People also ask

How do you control Google Glasses?

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.

What input methods does Google Glass have?

The currently supported input methods are: Android Keyboard (AOSP) Glass Keyboard. Google Voice Typing.

How to activate google Glass?

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.

How does Google Glass work?

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.


1 Answers

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.

like image 52
Fernando Gallego Avatar answered Oct 03 '22 14:10

Fernando Gallego