Is there an api function similar to mouse_event but for an analogue joystick?

We have designed a non-contacting industrial joystick that operates with the CanBus protocol and thought it would be a laugh if we could we could play games with it. What would be ideal is if we could write a driver for it and install it as a plug&play device.

Cheers for any help