Quote:
Originally Posted by arikfunke
@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