Search code examples
google-glassgoogle-gdk

Panning an image with head motion on Google Glass


Is there any solution for panning images using head motion? i.e. the 'Meet the Team' easter egg. Works very well on the easter egg!

Would be great to have this in the GDK (hint hint Google). I have found this library which works for horizontal panning and I will likely just adapt this if there is not another solution out there.


Solution

  • Any solution right now would involve listening to the sensors manually and then translating the visible region of the view based on those values. It sounds like the component you linked does most, if not all, of what you need.

    If you would like to see such a feature included as a public GDK API, feel free to file a feature request in our issue tracker!