There is an example of a custom device driver provided as part of the XSISDK installation. If you look under your %XSISDK%\examples\drivers folder, this example is provided as source code:
MouseDriver\mousedriver.cpp—a COM example demonstrating how to implement a mouse driver that allows the user to drive the X and Y positions based on
the current selection. For more information, see the ReadMe.html file in the same directory.
Important
Note that because this driver is implemented using the COM API, you need to compile the example using MainWin on Linux. For
more information on setting up your development environment for COM on Linux, see MainWin (Linux) Environment in the COM API
Developer's Guide.