CountJoysticks() reports one joystick to much

Find quick help here to get you started with Hollywood
Post Reply
amyren
Posts: 118
Joined: Thu May 02, 2019 11:53 am

CountJoysticks() reports one joystick to much

Post 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?

User avatar
airsoftsoftwair
Posts: 4349
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: CountJoysticks() reports one joystick to much

Post 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.

amyren
Posts: 118
Joined: Thu May 02, 2019 11:53 am

Re: CountJoysticks() reports one joystick to much

Post 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?

User avatar
airsoftsoftwair
Posts: 4349
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: CountJoysticks() reports one joystick to much

Post 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.

Post Reply