Edit /XBMC/scripts/Apple Movie Trailers/extras/lib/gui.py
Then fine the first "Remote"
You should see these lines...
CODE
def onAction( self, action ):
try:
button_key = self.controller_action.get( action.getButtonCode(), 'n/a' )
control = self.getFocus()
if ( button_key == 'Keyboard ESC Button' or button_key == 'Back Button' or button_key == 'Remote Menu Button' ):
self.exitScript()
elif ( button_key == 'Keyboard Backspace Button' or button_key == 'B Button' or button_key == 'Remote Back Button' ):
try:
button_key = self.controller_action.get( action.getButtonCode(), 'n/a' )
control = self.getFocus()
if ( button_key == 'Keyboard ESC Button' or button_key == 'Back Button' or button_key == 'Remote Menu Button' ):
self.exitScript()
elif ( button_key == 'Keyboard Backspace Button' or button_key == 'B Button' or button_key == 'Remote Back Button' ):
Change 'Remote Menu Button' to 'Remote Back Button'
Then the next few lines later you should delete, "or button_key == 'Remote Back Button'"
You should have this...
CODE
def onAction( self, action ):
try:
button_key = self.controller_action.get( action.getButtonCode(), 'n/a' )
control = self.getFocus()
if ( button_key == 'Keyboard ESC Button' or button_key == 'Back Button' or button_key == 'Remote Back Button' ):
self.exitScript()
elif ( button_key == 'Keyboard Backspace Button' or button_key == 'B Button' ):
try:
button_key = self.controller_action.get( action.getButtonCode(), 'n/a' )
control = self.getFocus()
if ( button_key == 'Keyboard ESC Button' or button_key == 'Back Button' or button_key == 'Remote Back Button' ):
self.exitScript()
elif ( button_key == 'Keyboard Backspace Button' or button_key == 'B Button' ):
Save the file, and then copy over the old version of gui on the xbox.
Now when you press 'Back' you should go back to the main blade.
When there is a fully working version of AMT is realised then I'll upload the full gui.py file with the DVD keymap mod, so things will be nice and easy to set up.
