Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Java (http://www.chiefdelphi.com/forums/forumdisplay.php?f=184)
-   -   Joystick Buttons (http://www.chiefdelphi.com/forums/showthread.php?t=101304)

Redstone 27-01-2012 17:23

Joystick Buttons
 
How would i make an if statement to check the status of the buttons on the joystick.

if (joystick button 9 is pressed){
//do something
}

Many Thanks :)

connor.worley 27-01-2012 17:31

Re: Joystick Buttons
 
The getRawButton method is what you are looking for.

Redstone 27-01-2012 17:36

Re: Joystick Buttons
 
Thanks you answered my question. It worked :)


All times are GMT -5. The time now is 22:20.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi