Cannot detect any joystick movement?

Report any Hollywood bugs here
Post Reply
marko
Posts: 56
Joined: Wed Dec 15, 2010 5:19 pm
Contact:

Cannot detect any joystick movement?

Post by marko »

Hi, I have problems with the command JoyDir, it seems I can't register any joystick directions at all, it always returns 8??

I'm running Hollywood 4.5 and OS3.x in WinUAE, both joystick ports seems to work when I try some games though, but not in my code below... Do you see anything wrong in it?

Code: Select all

debugPrint("Joy start.")
Function p_CheckJoy()
	p_MyState0 = JoyDir(0)
	p_MyState1 = JoyDir(1)
	
	DebugPrint(p_MyState0, p_MyState1)
EndFunction

SetInterval(1, p_CheckJoy, 40)
Repeat
	WaitEvent
Forever
End()
AmigaOS 4.1 on Sam440ep-flex@800MHz
http://www.m4rko.com/amiga
marko
Posts: 56
Joined: Wed Dec 15, 2010 5:19 pm
Contact:

Re: Cannot detect any joystick movement?

Post by marko »

Can someone test that code snippet please, does it work for you?
AmigaOS 4.1 on Sam440ep-flex@800MHz
http://www.m4rko.com/amiga
User avatar
airsoftsoftwair
Posts: 5433
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: Cannot detect any joystick movement?

Post by airsoftsoftwair »

Seems to be a WinUAE problem. I tried it here and get the same result, but it occurs because lowlevel.library doesn't seem to get emulated correctly. On WinUAE, lowlevel's ReadJoyPort() returns JP_TYPE_UNKNOWN... that's why Hollywood fails.
marko
Posts: 56
Joined: Wed Dec 15, 2010 5:19 pm
Contact:

Re: Cannot detect any joystick movement?

Post by marko »

Oh, ok thanx. I guess there's no easy/quick fix :/
AmigaOS 4.1 on Sam440ep-flex@800MHz
http://www.m4rko.com/amiga
Bugala
Posts: 1178
Joined: Sun Feb 14, 2010 7:11 pm

Re: Cannot detect any joystick movement?

Post by Bugala »

Sounds like something you need to report to Tony Wilen in hopes of getting it fixed.

He hangs at least in Amigaworld.net forum with username TonyW, so you can send him for example PM about this in there. I guess theres hes email somewhere in WINUAE foundable too.
marko
Posts: 56
Joined: Wed Dec 15, 2010 5:19 pm
Contact:

Re: Cannot detect any joystick movement?

Post by marko »

I've sent an email to Tony Wilen.
AmigaOS 4.1 on Sam440ep-flex@800MHz
http://www.m4rko.com/amiga
Post Reply