|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
Javadocs for F310 Gamepad
Where are the Javadocs for using the Logitec F310 Gamepad or the XBox game controller? I find instructions on a 3-axis (X Y Z) Joystick but not for the 2-stick gamepad.
For those whose standard reply is to connect to DriverStation USB display - we did that and the right controller of the game pad showed X and Y motion and the left controller did nothing. since the display was identified as Joystick 1 and Joystick 2 it was not looking for a second control stick on the same port. So how do we access the second controller? |
|
#2
|
|||||
|
|||||
|
Re: Javadocs for F310 Gamepad
Quote:
|
|
#3
|
||||
|
||||
|
Re: Javadocs for F310 Gamepad
Be sure the 'mode' button on the gamepad is not active.
If you're unsure about the mapping of sticks and buttons on the F310, you can refer to this. Alternatively, use the Logitech Profiler to define your mapping. |
|
#4
|
|||
|
|||
|
Re: Javadocs for F310 Gamepad
You treat it just like a joystick, but use the getRawAxis(int axis) method to access each axis.
So all of the methods for direction and magnitude will not work or have no equivalent? Which controller is axis 1 and which is axis 4? How is X mapped to an axis and how is Y mapped to axis. There are all kinds of buttons on the gamepad, colored, non-colored, triggers, settings, etc. How are these mapped to the joystick? The older Attack joystick has numbers on the buttons and those numbers correspond Javadoc for Joystick. One would have expected that the Javadoc for the gamepad should include similar details about the mapping and use. |
|
#5
|
|||||
|
|||||
|
Re: Javadocs for F310 Gamepad
Quote:
Unless the axis map in a similar way that the basic joystick does the get magnitude methods and the like will not work. I know the left joystick of a PS4 controller maps to the first 2 axis, so that would match up to the getMagnitude() method. There is no Gamepad class as far as I'm aware, so there is no javadoc. Last edited by notmattlythgoe : 27-01-2015 at 11:01. |
|
#6
|
|||
|
|||
|
Re: Javadocs for F310 Gamepad
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|