Release I need the xml from this joystick map test please


Joined
Sep 12, 2010
Messages
282
this is a small joystick/input mapping test app, I need the joystick_dump.xml file from a pandora that's dumped in the current folder when you press the [write] button if someone can post it.


it lists all the accessible /dev/input/event*


its to make the a default key/joystick mapping template.


thank you.


http://rv6502.com/do...e=jtest_pandora


screenshot.png
 
thanks a lot.



Code:
<hardware name="nub0" port_index="0" port="event3">

  <game name="" port_index="" >

   <map src="JGAME_AXIS_X:0" dst="" />

   <map src="JGAME_AXIS_Y:0" dst="" />

  </game>

</hardware>

<hardware name="nub1" port_index="0" port="event4">

  <game name="" port_index="" >

   <map src="JGAME_AXIS_X:0" dst="" />

   <map src="JGAME_AXIS_Y:0" dst="" />

  </game>

</hardware>


ah-ha!


there's the issue with the 2nd nub getting automatically mapped to the same controls as the 1st nub.


the engine's mapper did not expect ABS_X and ABS_RX to be on separate /dev/input/eventX devices but still be on the same physical controller.


easy to fix...
 
its a bit odd to have to poll 4 separate devices to get all the key+nub events, not the most CPU-efficient either.
 
I'm curious, what's the benefit of reading /dev/input/event* over /dev/input/js1 and /dev/input/js2?
 
I'm curious, what's the benefit of reading /dev/input/event* over /dev/input/js1 and /dev/input/js2?

none, except that event* covers all devices, js* covers only joysticks.


js* devices are aliases to the corresponding event* device (not necessarily the same number).


and mice is a combination of all mouse* devices so old window systems that can only handle 1 mouse device can still access all mice.
 
Back
Top