Hello,
I have the problem that a user is using an input device, that is not working correctly. I would send him a small Unity program, that should save the device layout info (in fact what i see in the Input Debugger - State window) as ascii file, so that he can send it back to me an I can create a custom input device for him.
My question is: Is it possible to get the used layout of all connected devices as Json string?
// Start is called before the first frame update
void Start()
{
int i = 0;
foreach (var each_device in InputSystem.devices)
{
// getting description works,
using (StreamWriter stream = new StreamWriter("device" + i++ + ".txt", true))
stream.Write(each_device.description.ToJson());
// but how to get layout as Json?
//....
}
}
Regards
Zulu