CountJoysticks() return incorrect value on OS4

Report any Hollywood bugs here
Post Reply
User avatar
lazi
Posts: 625
Joined: Thu Feb 24, 2011 11:08 pm

CountJoysticks() return incorrect value on OS4

Post by lazi »

Hi Andreas, and the Hollywood folks!

Here is what I do experiencing:

I have two identical analog joypads.
Prefs/Amigainput USB interface lists the two connected gamepad.
At lowlevel settings I assigned like this:
gamepad unit 0 to Port1-Joystick
gamepad unit 1 to Port2-Joystick.

Hollywood's CountJoystick() said that there is only one joystick (returns with value 1).

Checking joyfire(0) - works with the gamepad unit 0 (Port1).
Joyfire(1) fails with cannot acquire joystick!
Joyfire(2) - works with the gamepad unit 1 (Port2).

So, it seems a bit weird.
User avatar
lazi
Posts: 625
Joined: Thu Feb 24, 2011 11:08 pm

Re: CountJoysticks() return incorrect value on OS4

Post by lazi »

lazi wrote: I have two identical analog joypads.
I have mistaken. The joypads are of digital types.
User avatar
airsoftsoftwair
Posts: 5443
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: CountJoysticks() return incorrect value on OS4

Post by airsoftsoftwair »

Then the OS4 mapping to lowlevel.library ports must somehow be messed up. Hollywood will just pass the ports to lowlevel.library so if the second joypad is available through lowlevel port 2 then OS4 seems to map it to that port... don't ask me why :) Maybe ask on a Hyperion forum if somebody knows...
User avatar
lazi
Posts: 625
Joined: Thu Feb 24, 2011 11:08 pm

Re: CountJoysticks() return incorrect value on OS4

Post by lazi »

Thanks, I will investigate it further.
Post Reply