The InitializeSensor function is where you should initialize the connection to the device. You should set the status variable of the senor structure to TRUE or FALSE depending on if the initialized succeeded or failed.
The UpdateSensor function is called every frame and this is where you will place the tracking data into the data variable of the sensor structure.
Finally, the CloseSensor function is called when the script shuts down. This where you would disconnect from the device and cleanup your plugin.
|