Quote: "So the raw joystick commands doesn't work the the 360 controller on PC?"
Mostly - it looks to be missing the DPad and the big glowy button in the middle. Also the triggers are a bit wierd, both being read off one analogue input
Left An. stick is accessed with GetRawJoystickX() and GetRawJoystickY()
Right An. stick is accessed with GetRawJoystickRX() and GetRawJoystickRY()
An. Triggers are accessed through GetRawJoystickZ() - positive = left, negative = right
"A" is on Button 1
"B" is on Button 2
"X" is on Button 3
"Y" is on Button 4
Shoulder buttons are buttons 5 (left) & 6 (Right)
Select is button 7
Start is button 8
rem
rem AGK Application
rem
rem A Wizard Did It!
CompleteRawJoystickDetection()
do
if GetJoystickExists()
print( "Generic" )
print( "GetJoystickX(): " + str( GetJoystickX() ) )
print( "GetJoystickY(): " + str( GetJoystickY() ) )
for thisStick = 1 to 4
if GetRawJoystickExists( thisStick )
print( "Joystick " + str( thisStick ) )
print( "GetRawJoystickX("+str(thisStick)+"): " + str( GetRawJoystickX( thisStick ) ) )
print( "GetRawJoystickY("+str(thisStick)+"): " + str( GetRawJoystickY( thisStick ) ) )
print( "GetRawJoystickZ("+str(thisStick)+"): " + str( GetRawJoystickZ( thisStick ) ) )
print( "GetRawJoystickRX("+str(thisStick)+"): " + str( GetRawJoystickRX( thisStick ) ) )
print( "GetRawJoystickRY("+str(thisStick)+"): " + str( GetRawJoystickRY( thisStick ) ) )
print( "GetRawJoystickRZ("+str(thisStick)+"): " + str( GetRawJoystickRZ( thisStick ) ) )
for thisButton=1 to 32
print( "GetRawJoystickButtonState("+str(thisStick)+","+str( thisButton )+"): " + str( GetRawJoystickButtonState( thisStick, thisButton ) ) )
next thisButton
endif
next thisStick
else
print("No Joystick")
endif
Sync()
loop