Page 1 of 1

CountJoysticks() reports one joystick to much

Posted: Wed Sep 09, 2020 2:29 pm
by amyren
When I query for joysticks on MorphOS CountJoysticks() will return 1 if no joysticks are connected, and reports 3 if 2 joysticks are present.
I even tried to disconnect both mouse and keyboard to be sure they didnt interfere.
Also in OS3.9 under WinUAE it does report 1 joystick present when none are set up.

In windows it will report correctly 0 if non are connected.

Is this the normal behaviour of CountJoysticks() when used on MorphOS, or could it be that my settings are somewhat messed up?

Re: CountJoysticks() reports one joystick to much

Posted: Thu Sep 10, 2020 7:34 pm
by airsoftsoftwair
That's more of a feature :) The problem is that lowlevel.library always seems to report the presence of a joystick no matter if one is connected or not and there is no real way for Hollywood to do some better diagnosis here.

Re: CountJoysticks() reports one joystick to much

Posted: Fri Sep 11, 2020 12:57 pm
by amyren
Is this consistent for all Amiga systems?
So that I can use a workaround by simply using -1 when an Amiga system is detected?

Re: CountJoysticks() reports one joystick to much

Posted: Fri Sep 18, 2020 11:54 pm
by airsoftsoftwair
amyren wrote:
Fri Sep 11, 2020 12:57 pm
Is this consistent for all Amiga systems?
So that I can use a workaround by simply using -1 when an Amiga system is detected?
Yes, should be possible.