only by joyid = 0 i get readings
but does not change the readings when using the controler
is my xbox controler defect or do i something not good
help wanted
error :
joyid does not change on cursor pres
shal i bring it back ?
or has anyone a better idea ?
Code: Select all
#include "fbgfx.bi"
#if __FB_LANG__ = "fb"
Using FB '' Scan code constants are stored in the FB namespace in lang FB
#endif
dim as single a( 8 )
dim as integer joyid = 0 , button , i
do
cls
print
print "joyid = " ; joyid
if not getjoystick( joyid , button _
, a( 0 ) , a( 1 ) , a( 2 ) , a( 3 ) _
, a( 4 ) , a( 5 ) , a( 6 ) , a( 7 ) ) then
print "buttons = " ; bin( button , 32 )
print "button = " ; button
for i = 0 to 7
print "a( " ; i ; " ) = " , a( i )
next i
else
end if
if multikey( sc_up ) then joyid = ( joyid + 1 ) and 15
if multikey( sc_down ) then joyid = ( joyid - 1 ) and 15
sleep 100
loop until inkey = chr( 27 )