Plugin for eventghost/controller support
#1
So, I'm new to Python coding, and I've got a few questions. I was hoping someone could explain what I'm doing wrong.

First off, I'm trying to modify the XBMC plugin code for Eventghost to include mapping options to enable direct-to-joystick functionality through the keymap.xml file. If I get this right, I believe it will solve a lot of problems people have been having under windows.

With that said, here's the pastebin for what I'm working on:

http://pastebin.com/m7d8d8b79

There are three sections where I (poorly, I'm afraid) tried to make additions to the file. They are the highlighted lines.

This is the file with the definition I am trying to use. Line 533 has the specific function.

http://pastebin.com/m65394331

Line 135 I'm trying to define the values to pass to the command. Each button is listed as "EG Action Name", "Short description", "Long description", "XBMC Value"

Line 152 is where I tried to get it to enumerate that value based on the list.

And line 164 is telling it to load those values for useage.

Obviously, I'm just trying to duplicate what I see it's already doing. The problem is, I don't fully know how variables work under Python, which is probably where I'm messing up.

So, what I need to understand is:

1. How do I properly declare the array of data I want to have used for my buttons?

2. How do I tell the buttonprototype how to properly read that data and create the appropriate command? The only value I really need to change is the button name to send. I'd just like to have any easy way to add other mapped items.
Reply

Logout Mark Read Team Forum Stats Members Help
Plugin for eventghost/controller support0