Identify different controller ports in python?
#1
Lightbulb 
Would be cool for someone to implement a feature of grabbing the id of different controller ports so for example, i can use ONLY controller port 4 for controlling XBMC.

Also, this is a must have feature for PYTHON!! as then, we can start creating those 2 player python games :-D etc etc...

eg:
def onAction(self, action):
try:
if action == 10(port2):
if self.fullscreen:
self.undoFullscreen()

or something like that so we could make onAction for different controllers to allow for 2player games of eg. Tetris :-D Also, if a feature of getting the id of a port being used, then we could create a dialog saying "player1, press A now" and then it identifies that players port as eg. 3! etc etc.

Anyone?
Reply
#2
+1!

playing Tetris or Snake with 2 Players (DM) would be very funny! Rockstar said he would code a 2 Player Gametype for snake, if XBMC can make a difference between the controllers.

Then in XBMC should be an option to choose between "Control xbmc from all Ports" (like now) and "only controlling XBMC from Port [insert Port-Number here]"
Philips TV with Kodi 20.2 with IPTV --- Orbsmart 500 Android 21 alpha/beta as Online-radio/TV in the kitchen
Reply
#3
Excactly!!
Reply

Logout Mark Read Team Forum Stats Members Help
Identify different controller ports in python?0