19 CPhidgetInterfaceKit_set_OnSensorChange_Handler(ik_handle_,
SensorHandler,
this);
23 int IK::SensorHandler(CPhidgetInterfaceKitHandle ,
void *userptr,
int index,
int sensorValue)
25 ((
IK*)userptr)->sensorHandler(index, sensorValue);
31 printf(
"index: %d, value: %d\n", index, sensorValue);
34 int IK::InputHandler(CPhidgetInterfaceKitHandle ,
void *userptr,
int index,
int inputValue)
36 ((
IK*)userptr)->inputHandler(index, inputValue);
42 printf(
"index: %d, value: %d\n", index, inputValue);
virtual void registerHandlers()
static int SensorHandler(CPhidgetInterfaceKitHandle ik, void *userptr, int index, int sensorValue)
CPhidgetInterfaceKitHandle ik_handle_
virtual void inputHandler(int index, int inputValue)
static int InputHandler(CPhidgetInterfaceKitHandle ik, void *userptr, int index, int inputValue)
void init(CPhidgetHandle handle)
virtual void sensorHandler(int index, int sensorValue)