|
Post by ninadeshinibida on Mar 3, 2008 22:20:13 GMT -5
firstly i want to make an ovacion for tom Mulgreg basic4gl it`s agreat compiler bot... if it intencion is to make videogames i thing that that the joystick function need 1.- moore buttons almost all video games have joy_(0) to joy_(9). 2 a second joystick controler , i heard that it can made it via dll. bot if you need to Know C++ in that case why use basic4gl to make your game
|
|
|
Post by DJLinux on Mar 4, 2008 0:19:30 GMT -5
JoyPlugin.zipfor every button and axis one bit is set! With 16 joysticks you can use 384 buttons and 128 axis Joshy dim Info as JOYSTICKINFO dim i as integer
const STICK = 0 const MAX_BUTTONS = 24 const MAX_AXIS = 8 while true if GetJoystickInfo(STICK,Info)=True then locate 0,0 if Info.Buttons<>0 then printr "Buttons = " + Info.Buttons + " " for i=0 to MAX_BUTTONS-1 if Info.Buttons and int(Pow(2,i)) then printr "Button(" + i + ") pressed" end if next end if if Info.Axis<>0 then printr "Axis = " + Info.Axis + " " for i=0 to MAX_AXIS-1 if Info.Axis and int(pow(2,i)) then printr "Values(" + i + ")=" + Info.Values(i) + " " end if next end if end if printr:printr:printr:printr sleep(100) wend end
|
|
|
Post by DJLinux on Jun 23, 2009 2:28:48 GMT -5
|
|