View Single Post
Old 03-08-2012, 10:06 AM   #70
dave2008
Addict
dave2008 can program the VCR without an owner's manual.dave2008 can program the VCR without an owner's manual.dave2008 can program the VCR without an owner's manual.dave2008 can program the VCR without an owner's manual.dave2008 can program the VCR without an owner's manual.dave2008 can program the VCR without an owner's manual.dave2008 can program the VCR without an owner's manual.dave2008 can program the VCR without an owner's manual.dave2008 can program the VCR without an owner's manual.dave2008 can program the VCR without an owner's manual.dave2008 can program the VCR without an owner's manual.
 
Posts: 230
Karma: 183457
Join Date: Jan 2012
Device: k3G(broken), KDXG, paperwhite
Quote:
Originally Posted by arikfunke View Post
@hawhill

Input handling via lua is really a great idea! I love how easy it is to modify!

One question though: Is there an easy way to determine screen orientation, e.g. for programming the four-way button?

Distinguishing between portrait and landscape should be easy enough with client_height and client_width, but one still does not know "which" landscape: keys on the left or on the right.
Hi arikfunke,

We have rotation detection in kindlepdfviewer, you can checkout this file:
https://github.com/hwhw/kindlepdfvie...aster/keys.lua

Then you can adjust the key code according to the mode. kindlepdfviewer even use lua to build its own UI, lots of fun to hack with
dave2008 is offline   Reply With Quote