how to handle left and right actions
#1
How in add-on I can handle keyboard events when user press Left or Right?
I'm using:
PHP Code:
xbmc.executebuiltin('ShowPicture('+url+')'
to display image and like to go next or previous when user pressing left or right
Reply
#2
Have you tried this?
PHP Code:
xbmc.executebuiltin(Action(action[,window])) 

http://kodi.wiki/view/list_of_built-in_functions
Executes an action (same as in keymap) for the given window or the active window if the parameter window is omitted. The parameter window can either be the window's id, or in the case of a standard window, the window's name. See Action IDs for a list of window names, and their respective ids.

http://kodi.wiki/view/Action_IDs
Reply
#3
@burekas, but I try to do some action when user is pressing Left or Right, not pretend such event
Reply
#4
# Make up/down/left/right switch between buttons
self.button0.controlRight(self.button1)
self.button1.controlLeft(self.button0)
self.button0.controlDown(self.button1)
self.button1.controlUp(self.button0)
Learning Linux the hard way !!
Reply

Logout Mark Read Team Forum Stats Members Help
how to handle left and right actions0