|
Re: Logitech Controller Programming
As for the logitech controllers: Yes, there is code to separate the joysticks. However, you simply treat the whole controller as a single Joystick object.
Example:
Joystick logitechController = new Joystick(1);
//Read the y axis on the left joystick
logitechController.getRawAxis(leftYAxis); //<-- Experiment to find the exact //axis value
//Read the y axis on the right joystick
logitechController.getRawAxis(rightYAxis); // <-- find the right axis number
You'll have to experiment a bit to find the correct axis numbers to make it work properly, and possibly invert the outputs (sometimes down is positive), but each joystick is really just two independent axis' on the same "joystick" controller.
__________________
Attending: MN Duluth Regional
|