I try to get the slot device chain of a device.
The only way I found for this is:
Code: Select all
cursorDevice.addSlotsObserver(function(on){
cursorDeviceSlots = on;
});
Code: Select all
cursorDevice.selectFirstInSlot(cursorDeviceSlots);
I found out that it actually gets a single string with only the name of the first slot!!!
When testing it with
Code: Select all
println(cursorDeviceSlots[1]);
What's wrong here?
Or is there a deicated method somewhere to get the device slot of a device? (just wondering that there is a DeviceSlot class but no method to get an DeviceSlot object)