restored old config behavior because the gui doesn't support joysticks yet

added note to install file that setup.py is broken right now
This commit is contained in:
punkrockguy318 2009-01-13 09:02:27 +00:00
parent d7812c852a
commit 1b63129449
4 changed files with 16 additions and 3 deletions

View File

@ -1,3 +1,12 @@
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
! IMPORTANT NOTE
! The setup script is broken right now.
! To workaround, just run gfceux out of the source directory.
!
! $ python ./gfceux
!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
You can install gfceux with setup.py: You can install gfceux with setup.py:
$ sudo python setup.py install --prefix=/usr/local $ sudo python setup.py install --prefix=/usr/local

View File

@ -1,4 +1,6 @@
gfceux gfceux
get_key.py
config_parse.py
setup.py setup.py
COPYING COPYING
ChangeLog ChangeLog

1
TODO
View File

@ -1,4 +1,5 @@
TODO: TODO:
* clean setup.py
* implement UI for --special (combo box) * implement UI for --special (combo box)
* use combo box for bpp * use combo box for bpp
* use combo box to select gamepad to configure, simply UI * use combo box to select gamepad to configure, simply UI

7
gfceux
View File

@ -553,8 +553,9 @@ class GfceuxApp:
# fix this global its ugly # fix this global its ugly
# specifies which NES gamepad we are configuring # specifies which NES gamepad we are configuring
gamepad_config_no = "0" gamepad_config_no = "0"
def gamepad_clicked(self, widget, data=None): # This isn't used yet because it doesn't work with joysticks.
def gamepad_clicked_new(self, widget, data=None):
widgets.get_object("gamepad_config_window").show_all() widgets.get_object("gamepad_config_window").show_all()
d = {'gp1_button' : "0", d = {'gp1_button' : "0",
@ -593,7 +594,7 @@ class GfceuxApp:
cp.writeKey(prefix + "DeviceNum", key_tuple[2]) cp.writeKey(prefix + "DeviceNum", key_tuple[2])
cp.writeKey(d[widget.name], key_tuple[1]) cp.writeKey(d[widget.name], key_tuple[1])
def gamepad_clicked_old(self, widget, data=None): def gamepad_clicked(self, widget, data=None):
command = '--inputcfg gamepad' + self.gamepad_config_no command = '--inputcfg gamepad' + self.gamepad_config_no
self.launch(command, True) self.launch(command, True)