diff --git a/ChangeLog b/ChangeLog index fb511563..714b47fc 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,4 @@ +* Updated UI, explains joystick support isn't complete yet in the GUI * Cleaned up glade file to silence warnings * Pygame is no longer required for gfceux to run, just for the input GUI * Turbo A and Turbo B support for gamepad GUI diff --git a/TODO b/TODO index af5ab2b7..6c0f209d 100644 --- a/TODO +++ b/TODO @@ -1,5 +1,6 @@ -TODO: -* improve button config now that config system is resolved +TODO: +* joystick input support +* hotkey config * resolution * parse normal options (etc quiet) * Browser diff --git a/get_key.py b/get_key.py index 2f204d6e..0ce84401 100755 --- a/get_key.py +++ b/get_key.py @@ -20,6 +20,10 @@ class KeyGrabber: if event.type == KEYDOWN: pygame.display.quit() return event.key + # TODO: Make work with joystick. Do buttons first. + #if event.type == JOYBUTTONDOWN: + # pygame.display.quit() + # return event.joy, event.button if __name__ == "__main__": kg = KeyGrabber() diff --git a/gfceux b/gfceux index 158dc046..619ce1d5 100755 --- a/gfceux +++ b/gfceux @@ -597,10 +597,7 @@ class GfceuxApp: def config_help_button_clicked(self, menuitem, data=None): msgbox = gtk.MessageDialog(parent=None, flags=0, type=gtk.MESSAGE_INFO, buttons=gtk.BUTTONS_CLOSE) - msgbox.set_markup("Once a gamepad is seleceted, a titlebar will be displayed\ - indicating a NES button. Press the button or key you would like to have\ - associated with the button indicated on the titlebar. This process\ - will repeat until all buttons on the gamepad are configured.") + msgbox.set_markup("You should be able to figure it out from here.") msgbox.run() msgbox.hide() diff --git a/gfceux.glade b/gfceux.glade index d1b10182..c54410f6 100644 --- a/gfceux.glade +++ b/gfceux.glade @@ -1,176 +1,283 @@ - + - + True - + True - 0 - GTK_SHADOW_NONE - - - True - 12 - - - True - 3 - 3 - - - - - - - - - - - - - - - - - - True - True - True - Up - 0 - - - - 1 - 2 - - - - - True - True - True - Left - 0 - - - - 1 - 2 - - - - - True - True - True - Down - 0 - - - - 1 - 2 - 2 - 3 - - - - - True - True - True - Right - 0 - - - - 2 - 3 - 1 - 2 - - - - - - - - - True - <b>D-Pad</b> - True - - - label_item - - + <b>NOTE:</b> The below GUI is brand new and currently only works with keyboard input. To configure a joystick, use --inputcfg. + + True + True - - False - False - - + True - 0 - GTK_SHADOW_NONE - + True - 12 + 0 + GTK_SHADOW_NONE - + True + 12 - + True - True - True - Select - 0 - + 3 + 3 + + + + + + + + + + + + + + + + + + True + True + True + Right + 0 + + + + 2 + 3 + 1 + 2 + + + + + True + True + True + Down + 0 + + + + 1 + 2 + 2 + 3 + + + + + True + True + True + Left + 0 + + + + 1 + 2 + + + + + True + True + True + Up + 0 + + + + 1 + 2 + + - - False - False - - - - - True - True - True - Start - 0 - - - - False - False - 1 - - - - - - True - <b>Essentials</b> - True + + + True + <b>D-Pad</b> + True + + + label_item + + - label_item + False + False + + + + + True + 0 + GTK_SHADOW_NONE + + + True + 12 + + + True + + + True + True + True + Select + 0 + + + + False + False + + + + + True + True + True + Start + 0 + + + + False + False + 1 + + + + + + + + + True + <b>Essentials</b> + True + + + label_item + + + + + 1 + + + + + True + 0 + GTK_SHADOW_NONE + + + True + 12 + + + True + + + True + + + True + True + True + B + 0 + + + + + + True + True + True + A + 0 + + + + 1 + + + + + + + True + + + True + True + True + Turbo B + 0 + + + + + + True + True + True + Turbo A + 0 + + + + 1 + + + + + 1 + + + + + + + + + True + <b>Alpha and Beta</b> + True + + + label_item + + + + + 2 @@ -178,96 +285,6 @@ 1 - - - True - 0 - GTK_SHADOW_NONE - - - True - 12 - - - True - - - True - - - True - True - True - B - 0 - - - - - - True - True - True - A - 0 - - - - 1 - - - - - - - True - - - True - True - True - Turbo B - 0 - - - - - - True - True - True - Turbo A - 0 - - - - 1 - - - - - 1 - - - - - - - - - True - <b>Alpha and Beta</b> - True - - - label_item - - - - - 2 - - diff --git a/gfceux.xml b/gfceux.xml index a558d860..91cc649a 100644 --- a/gfceux.xml +++ b/gfceux.xml @@ -1,5 +1,5 @@ - + 5 @@ -38,248 +38,265 @@ - + True - + True - 0 - GTK_SHADOW_NONE - - - True - 12 - - - True - 3 - 3 - - - - - - - - - - - - - - - - - - True - True - True - Up - - - - 1 - 2 - - - - - True - True - True - Left - - - - 1 - 2 - - - - - True - True - True - Down - - - - 1 - 2 - 2 - 3 - - - - - True - True - True - Right - - - - 2 - 3 - 1 - 2 - - - - - - - - - True - <b>D-Pad</b> - True - - + <b>NOTE:</b> The below GUI is brand new and currently only works with keyboard input. To configure a joystick, use --inputcfg. + + True + True - - False - False - - + True - 0 - GTK_SHADOW_NONE - + True - 12 + 0 + GTK_SHADOW_NONE - + True + 12 - + True - True - True - Select - + 3 + 3 + + + + + + + + + + + + + + + + + + True + True + True + Right + + + + 2 + 3 + 1 + 2 + + + + + True + True + True + Down + + + + 1 + 2 + 2 + 3 + + + + + True + True + True + Left + + + + 1 + 2 + + + + + True + True + True + Up + + + + 1 + 2 + + - - False - False - - - - - True - True - True - Start - - - - False - False - 1 - + + + True + <b>D-Pad</b> + True + + + + False + False + - - + + True - <b>Essentials</b> - True + 0 + GTK_SHADOW_NONE + + + True + 12 + + + True + + + True + True + True + Select + + + + False + False + + + + + True + True + True + Start + + + + False + False + 1 + + + + + + + + + True + <b>Essentials</b> + True + + + + 1 + + + + + True + 0 + GTK_SHADOW_NONE + + + True + 12 + + + True + + + True + + + True + True + True + B + + + + + + True + True + True + A + + + + 1 + + + + + + + True + + + True + True + True + Turbo B + + + + + + True + True + True + Turbo A + + + + 1 + + + + + 1 + + + + + + + + + True + <b>Alpha and Beta</b> + True + + + + + 2 + 1 - - - True - 0 - GTK_SHADOW_NONE - - - True - 12 - - - True - - - True - - - True - True - True - B - - - - - - True - True - True - A - - - - 1 - - - - - - - True - - - True - True - True - Turbo B - - - - - - True - True - True - Turbo A - - - - 1 - - - - - 1 - - - - - - - - - True - <b>Alpha and Beta</b> - True - - - - - 2 - -