SET JOYSTICK DEADZONE コマンド パッドのデジタル値の微調整を行う。50が良い値。
sync on sync rate 60 ZoneSize = 0 do cls if inkey$() = "+" and ZoneSize < 100 then inc ZoneSize if inkey$() = "-" and ZoneSize > 0 then dec ZoneSize SET JOYSTICK DEADZONE zoneSize print "Joystick deadzone is at "; ZoneSize; "%" print if joystick up() = 1 then print "Joystick up" if joystick down() = 1 then print "Joystick down" if joystick left() = 1 then print "Joystick left" if joystick right() = 1 then print "Joystick right"
sync on : sync rate 120 : hide mouse set text font "courier" : set text size 16 set text to bold : set text transparent ink rgb(255,255,0),0 rem Main loop do cls print "XBOX 360 Controller" print "-------------------" print "LEFT STICK X=";JOYSTICK X() print "LEFT STICK Y=";JOYSTICK Y() print "LEFT STICK BUTTON=";JOYSTICK FIRE X(8) print "RIGHT STICK X=";JOYSTICK TWIST X() print "RIGHT STICK Y=";JOYSTICK TWIST Y() print "RIGHT STICK BUTTON=";JOYSTICK FIRE X(9) print "SHOULDER TRIGGER LEFT AND RIGHT=";JOYSTICK Z() print "SHOULDER BUTTON LEFT=";JOYSTICK FIRE X(4) print "SHOULDER BUTTON RIGHT=";JOYSTICK FIRE X(5) print "START BUTTON=";JOYSTICK FIRE X(7) print "BACK BUTTON=";JOYSTICK FIRE X(6) print "BUTTON A=";JOYSTICK FIRE A() print "BUTTON B=";JOYSTICK FIRE B() print "BUTTON X=";JOYSTICK FIRE C() print "BUTTON Y=";JOYSTICK FIRE D() print "DPAD=";JOYSTICK HAT ANGLE(0) sync loop
970 :[ X | I.I.T. ] ◆wJJs9LuPjc :2011/07/29(金) 12:23:04.01 ID:wryu8cPD