After a couple of weeks of sometimes very frustrating work, I finally
managed it to write an USB-Driver, that is able to handle a
read-Syscall for a ForceFeedbackJoystick…
Now, because it’s a ForceFeedbackJoystick, my driver needs a function
to handle a write-Syscall triggered by applications.
The structure of the data_to_sent is the following:
typedef struct _joys_senddata
short usCtrlState; // field of bit for control 0 … 0xFFFF
short sSollPosX; // referenced position (X-Axes)
short sSollPosY; // referenced position (Y-Axes)
short sFSollX; // referenced force (X-Axes)
short sFSollY; // referenced force (Y-Axes)
Are there any examples for how such an joys_io_write-function must
look like??? Some ideas or a framework what the io_write-function has
to include??? Any hints of any kind???
Would be fine to get some answers…