## More axis support in the joystick plugin

Requests or suggestions for new features
darius
Posts: 5
Joined: 15 Apr 2014, 13:15

### More axis support in the joystick plugin

Hi,

I am developing control for a robot using the Logitech RumblePad 2 and the existing windows joystick plugin. This works great with one exception: it only supports 3 axis. And I need very much the 4th axis for my complex control. I hope very much that is not too much effort to add the support for the 4th axis and that it could be added before not too long. It looks like there is no need to change the existing joystick API.

The d-pad also is not supported, but this is not a big issue. For not the 10 buttons that work is a good solution.

Did I understood correctly that I have lots of trouble if I want to run ROS on Windows? If yes, then would be your suggestion for an alternative path to create my own full support for the RumblePad? I would like to continue using the Windows platform.

Best regards,
Darius

coppelia
Posts: 7857
Joined: 14 Dec 2012, 00:25

### Re: More axis support in the joystick plugin

Hello Darius,

the current implementation of the joystick plugin returns only 3 axis and the button states (i.e. 2 data sets). We have modified the plugin so that it returns more infos (i.e. 5 data sets):

Code: Select all

table_3 axes, number buttons, table_3 rotAxis, table_2 sliders, table_4 PovValues = simExtJoyGetData(number joystickIndex)

The returned values correspond to the first 9 entries in this page. Not sure if your 4th axis will be mapped onto one of those.

The updated plugin, with source code can be downloaded here.

If you want to recompile the plugin yourself, you will have to download the DirectX SDK.

Cheers

darius
Posts: 5
Joined: 15 Apr 2014, 13:15

### Re: More axis support in the joystick plugin

Thank you very much for the fix and advices.
I will try to recompile my self.

darius
Posts: 5
Joined: 15 Apr 2014, 13:15

### Re: More axis support in the joystick plugin

OK, I found that the compiled DLL was already included in the zip, so I did not try to compile it myself.

Everything seems to work as expected.

darekm
Posts: 2
Joined: 10 Mar 2015, 14:31

### Re: More axis support in the joystick plugin

It seems to be still an issue in the latest version (lack of axis[4]), can you provide the code for the plugin again ?

coppelia
Posts: 7857
Joined: 14 Dec 2012, 00:25

### Re: More axis support in the joystick plugin

Hello,

we haven't implemented any axis[4]. Just as described in our previous post above.
The source code can be found in programming/windowsOnlyProjects/v_repExtJoystick

Cheers

darekm
Posts: 2
Joined: 10 Mar 2015, 14:31

### Re: More axis support in the joystick plugin

Is there a manual somewhere which will tell me how to compile it?

coppelia
Posts: 7857
Joined: 14 Dec 2012, 00:25

### Re: More axis support in the joystick plugin

There is a VS2005 project file. But you will also need to install the DirectX SDK.

Cheers

skitano
Posts: 1
Joined: 14 Feb 2018, 10:39

### Re: More axis support in the joystick plugin

Hi,

I know this thread was closed long time ago, but I also wanted to read 4th axis of the joystick.
But In my case which uses Logicool gamepad F310, rotAxes[3] is the 4th axis of the joystick!

With this plugins, it became lot easier to control v-rep model, thanks!

coppelia