Page 1 of 1

CountJoysticks() return incorrect value on OS4

Posted: Wed Apr 17, 2013 10:07 pm
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.

Re: CountJoysticks() return incorrect value on OS4

Posted: Sun Apr 28, 2013 8:04 pm
by lazi
lazi wrote: I have two identical analog joypads.
I have mistaken. The joypads are of digital types.

Re: CountJoysticks() return incorrect value on OS4

Posted: Wed May 01, 2013 11:31 am
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...

Re: CountJoysticks() return incorrect value on OS4

Posted: Wed May 01, 2013 1:20 pm
by lazi
Thanks, I will investigate it further.