JInputController.getName() garbles joystick name

Started by irrisor, November 16, 2006, 19:43:44

Previous topic - Next topic

irrisor

Hi guys,

JInputController.getName() does this:
String name = target.getName();
		return name.substring(0,name.length()/2);


Why?!? name is fine after the first line (not dublicated or something) - the second line cuts it in half :(

Is this only for me or should this be changed?

kevglass

I've updated this. The cutting in half I believe was residual from the old version of JInput which seemed to duplicate names in the name reported.

Either way, whatever JInput is returning should be what we report.

Kev