Previous Thread
Next Thread
Print Thread
Page 1 of 3 1 2 3
#34208 10/02/07 11:48 AM
Joined: Jun 2007
Posts: 223
B
billb Offline OP
Senior Member
OP Offline
Senior Member
B
Joined: Jun 2007
Posts: 223
I'm having difficulty getting my gamepad to work with C64 games (Jumpman, specifically) in MESS ... it works on all the other emulated systems I have tried -- MSX, Vectrex, Apple II, Genesis, Coleco -- with no trouble at all.

So, I'm guessing that it is set to the wrong port on the C64, but I don't know how to change it. Something simple I am missing, probably, but I can't find it. The tab key does not bring up a menu like it does in sdlmame ... not sure if that is supposed to work or not.

I have used VICE to play Jumpman, but on the PS3 the full screen option doesn't work in VICE. I'm using sdlmess 0.115-1.fc7.drb (from Dribble) on Fedora 7 PPC and full screen / window resizing works great.

billb #34210 10/02/07 01:37 PM
Joined: Mar 2001
Posts: 16,722
Likes: 17
R
Very Senior Member
Offline
Very Senior Member
R
Joined: Mar 2001
Posts: 16,722
Likes: 17
The C64 has a core joystick problem. It was temporarily fixed a while ago but that change broke the Amiga so it was reverted.

R. Belmont #34212 10/02/07 02:18 PM
Joined: Jun 2007
Posts: 223
B
billb Offline OP
Senior Member
OP Offline
Senior Member
B
Joined: Jun 2007
Posts: 223
Originally Posted By R. Belmont
The C64 has a core joystick problem. It was temporarily fixed a while ago but that change broke the Amiga so it was reverted.


Thanks for letting me know. Maybe it was eaten by a grue? crazy

billb #34214 10/02/07 06:43 PM
Joined: Dec 1999
Posts: 1,176
J
Very Senior Member
Offline
Very Senior Member
J
Joined: Dec 1999
Posts: 1,176
The core problem should only affect joystick port 2, I dunno which one those games need to use.

The tab menu is still there, you just have to hit a special key to toggle between the C64 keyboard and the MAME UI keys. I think SDLMESS uses the Insert key for that?

Justin #34215 10/02/07 07:12 PM
Joined: Mar 2001
Posts: 16,722
Likes: 17
R
Very Senior Member
Offline
Very Senior Member
R
Joined: Mar 2001
Posts: 16,722
Likes: 17
On Linux/Win32 SDLMESS uses Scroll Lock like baseline, on the Mac it's Insert (which Mac keyboards call "Help", I believe).

Justin #34219 10/03/07 12:06 AM
Joined: Jun 2007
Posts: 223
B
billb Offline OP
Senior Member
OP Offline
Senior Member
B
Joined: Jun 2007
Posts: 223
Thanks guys ...

OK, I can bring up the MAME UI using the Scroll Lock toggle to enable the tab key.

And I see it is definitely joystick port 2 that is affected and not port 1.

I ran a BASIC program* on the C64 that loops to show values for Joystick ports 1 & 2 and when I move the dpad or hit the fire button on my gamepad it changes the value for port 1.

But if I use the 'Swap Gameport 1 and 2' option in the UI (under Dip Switches) then the values no longer change at all for ports 1 or 2.

Code:
 10 PRINTCHR$(147)
 20 PRINT"JOYSTICK PORT 1 "PEEK(56321)
 30 PRINT"JOYSTICK PORT 2 "PEEK(56320)
 40 GOTO 10


So I guess Jumpman requires a joystick in the virtual port 2. frown

* Reference:
http://personalpages.tds.net/~rcarlsen/cbm/ctrlport.txt

billb #34260 10/04/07 05:07 PM
Joined: Jun 2007
Posts: 223
B
billb Offline OP
Senior Member
OP Offline
Senior Member
B
Joined: Jun 2007
Posts: 223
I see there is a patch for this here:
http://bugzilla.mess.org/show_bug.cgi?id=1150

And I'm able to apply it to the src/mess/machine/c64.c file successfully, but I'm having other unrelated problems compiling sdlmess on my Fedora 7 PPC / PS3 at the moment.


billb #34420 10/08/07 11:38 PM
Joined: Jun 2007
Posts: 223
B
billb Offline OP
Senior Member
OP Offline
Senior Member
B
Joined: Jun 2007
Posts: 223
OK, I have re-compiled sdlmess 0.119 after applying the aforementioned patch and the joystick in port 2 is working now. Jumpman is on the move again. smile

In the MESS UI under Dip Switches, I have to leave Joystick 1 selected for Gameport A and None for Gameport B, and I can swap between using Gameports 1 and 2 properly.

Oddly, if I have Joystick 1 selected for Gameport A and Joystick 2 selected for Gameport B, it shows values changing for both ports at the same time when I test it with that BASIC program above using my gamepad (/dev/input/js0).

billb #34443 10/09/07 11:52 AM
Joined: May 1999
Posts: 157
Senior Member
Offline
Senior Member
Joined: May 1999
Posts: 157
However, the port swap dipswitch is a ugly hack that should be removed as soon as possible: such a switch is not present on real hardware on any Commodore computer, its presence is confusing for the user and introduces bugs.


JoJo
JoJo #34445 10/09/07 01:51 PM
Joined: Jun 2007
Posts: 223
B
billb Offline OP
Senior Member
OP Offline
Senior Member
B
Joined: Jun 2007
Posts: 223
Yes, but how does one properly emulate leaning over their C64, fiddling with the joystick plugs, and spilling their Pepsi all over the keyboard? wink

Hmm... I am glad you mentioned this. I was mistaken -- I changed "Swap Gameport 1 and 2" to "No" and Gameport B to "Joystick 2" and it still works.

Page 1 of 3 1 2 3

Link Copied to Clipboard
Who's Online Now
7 members (AJR, AaronGiles, mixmaster, hap, Carbon, Pernod, Olivier Galibert), 37 guests, and 3 robots.
Key: Admin, Global Mod, Mod
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Forum Statistics
Forums9
Topics8,924
Posts117,246
Members4,991
Most Online890
Jan 17th, 2020
Forum Host
These forums are hosted by www.retrogamesformac.com
Forum hosted by www.retrogamesformac.com