Kodi Community Forum
Process Up/Down during Screensaver - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: General Support (https://forum.kodi.tv/forumdisplay.php?fid=111)
+---- Forum: OS independent / Other (https://forum.kodi.tv/forumdisplay.php?fid=228)
+---- Thread: Process Up/Down during Screensaver (/showthread.php?tid=337618)



Process Up/Down during Screensaver - nilsjansen - 2018-11-18

Hey there,

I'm trying to modify a screensaver so that it goes back/forward one image when
python:
Action(Up)
or
python:
Action(Down)
is called.

How can I achieve that? Right now I don't know how to process a call to this function in my code.

Thanks
Nils


RE: Process Up/Down during Screensaver - DarrenHill - 2018-11-18

Thread moved to OS independent


RE: Process Up/Down during Screensaver - PatK - 2018-11-19

Most screen blankers poll the input devices for any input to dis-engage, likely you would have to write your code to not only observe the key input rule you set-up, but write or modify your blanker. An investigation of past blankers might be a good starting point, some have open source.


RE: Process Up/Down during Screensaver - nilsjansen - 2018-11-20

I'm now using a 3rd party GPIO addon which works really well to call functions when a button is pressed.
I have also downloaded an open source screensaver made by the Kodi team and started to modify it.

Now I need to call a function within my screensaver addon with the GPIO addon, so how do I make my functions available globally?