Cannot detect any joystick movement?
Posted: Wed Dec 15, 2010 9:27 pm
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?
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()