2010-09-25, 01:10
zosky Wrote:dinozzo, action(199) needs to appear in 2 places in the launcher_plugin.py ...
i have this working & here's how mine looks:
Code:[color=red]def _run_launcher[/color](self, launcherName):
... ... ...
[color=Red]elif (sys.platform.startswith('linux')):[/color]
xbmc.executehttpapi("Action(199)")
os.system("%s %s" % (launcher["application"], launcher["args"]))
xbmc.executehttpapi("Action(199)")
... ... ...
[color=red]def _run_rom[/color](self, launcherName, romName):
... ... ...
[color=Red]elif (sys.platform.startswith('linux')):[/color]
xbmc.executehttpapi("Action(199)")
os.system("\"%s\" %s \"%s\"" % (launcher["application"], launcher["args"], rom["filename"]))
xbmc.executehttpapi("Action(199)")
... ... ...
short of that you could force the issue with a man-in-the-middle script... ex, my launcher.xml
cat ~/.bin/xbmcEMU.shCode:<name>SNES</name>
<application>/home/xbmc/.bin/xbmcEMU.sh</application>
<args>zsnes -m -y -ad alsa</args>
Code:#!/bin/bash
# toggle xbmc.FS
curl "http://localhost:8080/xbmcCmds/xbmcHttp?command=Action(199)"
# go
DISPLAY=:0.0 $@
# toggle xbmc.FS
curl "http://localhost:8080/xbmcCmds/xbmcHttp?command=Action(199)"
i originally had action(199) in here, but moved it in-line after the patch was posted, i still used this to delete my joystick-keymap file, refresh the key-bindings --action(203)-- play, then restore the key-maps again. otherwise xbmc continues to process buttons from my joysticks while im in the emu.
Do you mind elaborating on the joystick keymap deletion? I have no idea what to do here, but it seems like i'm having the same problem. My controllers are controlling XBMC in the background.