Adding cursor event for a list - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32) +--- Forum: Skinning (https://forum.kodi.tv/forumdisplay.php?fid=12) +--- Thread: Adding cursor event for a list (/showthread.php?tid=316000) |
Adding cursor event for a list - baza_dwa - 2017-06-07 There is a horizontal list, so left-right arrows scroll it. All's OK. Now, can I tap into scrolling with my own events somehow? Defining <onleft> <onright> seems to do nothing. RE: Adding cursor event for a list - jurialmunkey - 2017-06-08 You can use a fake button to control the list and supply additional actions e.g. <onleft>Control.Move(ID,-1)</onleft> <onleft>ADDITIONAL_ACTION</onleft> The alternative is to use a hidden button in the <focusedlayout> with an <onfocus> condition. But that will just trigger something when the list moves - i.e. you won't be able to define separate actions for left and right individually. RE: Adding cursor event for a list - baza_dwa - 2017-06-09 Thanks, I'll redesign and use 2nd approach (didn't know that focusable items are allowed on lists). RE: Adding cursor event for a list - jurialmunkey - 2017-06-10 They aren't really (you will get an error in the log) and you can't use it for official repo submission, but they do work as a hack for an onfocus command |