View Single Post
Old 08-22-2022, 09:48 AM   #455
rkomar
Wizard
rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.
 
Posts: 3,058
Karma: 18821071
Join Date: Oct 2010
Location: Sudbury, ON, Canada
Device: PRS-505, PB 902, PRS-T1, PB 623, PB 840, PB 633
Taking a quick look through the koreader source code, I see that the pb_event_handler() function in "base/input.c" handles a few EVT_* events. You could add some code to handle the EVT_ORIENTATION events there, getting the new orientation from the "par1" variable. These are not strictly input events, so logically they don't fit with the rest of the code in that file, but you can only have one event handler function registered with InkView, so the orientation events have to be handled there along with the other events.
rkomar is offline   Reply With Quote