View Single Post
Old 09-21-2018, 12:40 AM   #1
sv2000
Junior Member
sv2000 for a long time would go to bed early.sv2000 for a long time would go to bed early.sv2000 for a long time would go to bed early.sv2000 for a long time would go to bed early.sv2000 for a long time would go to bed early.sv2000 for a long time would go to bed early.sv2000 for a long time would go to bed early.sv2000 for a long time would go to bed early.sv2000 for a long time would go to bed early.sv2000 for a long time would go to bed early.sv2000 for a long time would go to bed early.
 
Posts: 6
Karma: 17578
Join Date: Aug 2018
Device: Kobo Glo HD
Detecting if book being read / home screen in nickel

Hi,

I am trying to build an alternative way to launch koreader/other programs from within nickel, without relying on file monitoring.

My idea was to poll the /dev/input/event1 to check a particular region of the screen, and performing the desired action if touch coordinates are detected. Possibly print a small icon in the statusbar (if its possible to print to screen), which could be touched.

However I need a way to detect if the statusbar is hidden / we are reading something or if we are on the homescreen. Is there a way to accomplish something like this?
sv2000 is offline   Reply With Quote