local joysticCount=simExtJoyGetCount()
local axes_3,nuttons,rotAxes_3,sliders_2,pov_4=simExtJoyGetData(joysticZeroBasedIndex)
Check also its source code in programming/windowsOnlyProjects/v_repExtJoystick
With ROS, you can use programming/ros_packages/vrep_joy
Or of course do it yourself by interfacing via plugin or the remote API an existing library.
Cheers
I wonder if any one have tested if the v_repExtJoystick supports 3DConnexion.
Since I cannot find 3DConnexion in the forum. So I create this new post as a placeholder, in case others share the same interest.
that plugin doesn't support 3D mouses, but I know that some have created a Python interface to V-REP, using one common Python lib, can't remember right now, now where you can find it. Sorry, I just realize that doesn't sound very helpful.
I have sent them an email to request the DI examples, and I hope I can get it.
If it will be too hard, then I prefer to use the 3DxWare and give another try.