2008-08-09, 04:50
Hi, I've recently taken a shot at the XBMC Python scripting stuff, and so far I've been really impressed with the ease and power behind the function -- I have however, run into a few problems with the onAction() function. I can't seem to make it prevent the default XBMC action mapped to that key from happening (like the thumbsticks moving the song forward and changing the volume and the X button switching to the visualization while music is playing), I've been digging around the site and the forums for a while now trying to find a way to make my script only perform the actions defined for those keys and nothing else -- but I can't find anything indicating this has been an issue for anyone else.
I'd rather not have to edit the key mapping stuff because I intend to release this to other people, and I don't want them to have to edit their XML files to make full use of the system.
Now on to my second question; I have a USB keyboard connected to my Xbox and it works great, but I'm not quite sure how to add support for it to my program without requiring the virtual keyboard being open; I know onAction() registers keystrokes in the 65,000 range but I'd prefer not having to define an action for every key on the keyboard just for basic hardware keyboard support. Is there a more simple way of having it translate a key press into an actual key character? (I also have the same issue with the keyboard as I do above, the S key tries to shut the system down and things of that nature).
Any help would be greatly appreciated, thanks.
I'd rather not have to edit the key mapping stuff because I intend to release this to other people, and I don't want them to have to edit their XML files to make full use of the system.
Now on to my second question; I have a USB keyboard connected to my Xbox and it works great, but I'm not quite sure how to add support for it to my program without requiring the virtual keyboard being open; I know onAction() registers keystrokes in the 65,000 range but I'd prefer not having to define an action for every key on the keyboard just for basic hardware keyboard support. Is there a more simple way of having it translate a key press into an actual key character? (I also have the same issue with the keyboard as I do above, the S key tries to shut the system down and things of that nature).
Any help would be greatly appreciated, thanks.