HID Control Msg & LibusbJava
Posted: Wed Nov 21, 2007 1:26 pm
Hi,
I've modified the Easylogger project's descriptor to a gamepad with 4 buttons. I'm intending to continue using control transfers to communicate with the device from a java application.
I'm having trouble getting the controlMsg() method of libusbJava to work. I'm not clear what I should specify as parameters (method signature below) - particularly request, value and index.
public int controlMsg(int requestType,
int request,
int value,
int index,
byte[] data,
int size,
int timeout,
boolean reopenOnTimeout)
Thanks,
Conail
I've modified the Easylogger project's descriptor to a gamepad with 4 buttons. I'm intending to continue using control transfers to communicate with the device from a java application.
I'm having trouble getting the controlMsg() method of libusbJava to work. I'm not clear what I should specify as parameters (method signature below) - particularly request, value and index.
public int controlMsg(int requestType,
int request,
int value,
int index,
byte[] data,
int size,
int timeout,
boolean reopenOnTimeout)
Thanks,
Conail