Page 1 of 1

Cannot detect any joystick movement?

Posted: Wed Dec 15, 2010 9:27 pm
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()

Re: Cannot detect any joystick movement?

Posted: Thu Dec 16, 2010 4:37 pm
by marko
Can someone test that code snippet please, does it work for you?

Re: Cannot detect any joystick movement?

Posted: Fri Dec 17, 2010 8:38 pm
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.

Re: Cannot detect any joystick movement?

Posted: Fri Dec 17, 2010 8:52 pm
by marko
Oh, ok thanx. I guess there's no easy/quick fix :/

Re: Cannot detect any joystick movement?

Posted: Sat Dec 18, 2010 1:25 am
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.

Re: Cannot detect any joystick movement?

Posted: Sat Dec 18, 2010 6:37 pm
by marko
I've sent an email to Tony Wilen.