![]() |
Using Command base system
so... I'm trying to use the new command base system, so I've gone through the cookbook thing. I don't understand how to make a button on a controller link to a command. The cookbook uses a button class that isn't in the library, so how does this work?
|
Re: Using Command base system
It sounds like you're looking for the classes in wpilibj.buttons
|
Re: Using Command base system
Quote:
Code:
Button js1_button1 = new JoystickButton(js1, 1); // Create a Joystick Button, arguments sent to the constructor are (stickObject, button number) |
| All times are GMT -5. The time now is 11:40. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi