diff --git a/ChangeLog b/ChangeLog index fe068a12..541dfe17 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,4 @@ +* Turbo A and Turbo B support for gamepad GUI * Added initial support for a graphical UI for configuring gamepads * Moved gfceu options data file into .fceux instead of .fceultra ================= version 2.0.3 ================================= diff --git a/gfceux b/gfceux index 93302b56..281c82c6 100755 --- a/gfceux +++ b/gfceux @@ -564,14 +564,17 @@ class GfceuxApp: def button_clicked(self, widget, data=None): - d = {'right_button' : "SDL.Input.GamePad." + self.gamepad_config + "Right", - 'left_button' : "SDL.Input.GamePad." + self.gamepad_config + "Left", - 'up_button' : "SDL.Input.GamePad." + self.gamepad_config + "Up", - 'down_button' : "SDL.Input.GamePad." + self.gamepad_config + "Down", - 'select_button' : "SDL.Input.GamePad." + self.gamepad_config + "Select", - 'start_button' : "SDL.Input.GamePad." + self.gamepad_config + "Start", - 'a_button' : "SDL.Input.GamePad." + self.gamepad_config + "A", - 'b_button' : "SDL.Input.GamePad." + self.gamepad_config + "B"} + prefix = "SDL.Input.GamePad" + self.gamepad_config + d = {'right_button' : prefix + "Right", + 'left_button' : prefix + "Left", + 'up_button' : prefix + "Up", + 'down_button' : prefix + "Down", + 'select_button' : prefix + "Select", + 'start_button' : prefix + "Start", + 'a_button' : prefix + "A", + 'b_button' : prefix + "B", + 'turbo_a_button' : prefix + "TurboA", + 'turbo_b_button' : prefix + "TurboB"} kg = KeyGrabber() key = kg.get_key() cp = FceuxConfigParser(configfile) diff --git a/gfceux.glade b/gfceux.glade index f97cf66e..f06176aa 100644 --- a/gfceux.glade +++ b/gfceux.glade @@ -1,6 +1,6 @@ - + @@ -188,26 +188,62 @@ True 12 - + True - + True - True - True - B - 0 - + + + True + True + True + B + 0 + + + + + + True + True + True + A + 0 + + + + 1 + + - + True - True - True - A - 0 - + + + True + True + True + Turbo B + 0 + + + + + + True + True + True + Turbo A + 0 + + + + 1 + + 1 diff --git a/gfceux.xml b/gfceux.xml index c8ff013e..ccf2ffcf 100644 --- a/gfceux.xml +++ b/gfceux.xml @@ -1,5 +1,5 @@ - + 5 @@ -207,24 +207,58 @@ True 12 - + True - + True - True - True - B - + + + True + True + True + B + + + + + + True + True + True + A + + + + 1 + + - + True - True - True - A - + + + True + True + True + Turbo B + + + + + + True + True + True + Turbo A + + + + 1 + + 1