17 CPhidgetInterfaceKit_set_OnSensorChange_Handler(ik_handle_,
SensorHandler,
19 CPhidgetInterfaceKit_set_OnInputChange_Handler(ik_handle_,
InputHandler,
30 CPhidgetInterfaceKit_getInputCount(
ik_handle_, &n_in);
37 CPhidgetInterfaceKit_getOutputCount(
ik_handle_, &n_out);
44 CPhidgetInterfaceKit_getSensorCount(
ik_handle_, &n_sensors);
51 CPhidgetInterfaceKit_getSensorRawValue(
ik_handle_, index, &rawval);
57 return !CPhidgetInterfaceKit_setOutputState(
ik_handle_, index, state);
61 int index,
int sensorValue)
63 ((
IK *)userptr)->sensorHandler(index, sensorValue);
73 int index,
int inputValue)
75 ((
IK *)userptr)->inputHandler(index, inputValue);
int getSensorCount() const
bool setOutputState(int index, bool state) const
static int SensorHandler(CPhidgetInterfaceKitHandle ik, void *userptr, int index, int sensorValue)
CPhidgetInterfaceKitHandle ik_handle_
int getOutputCount() const
virtual void inputHandler(int index, int inputValue)
static int InputHandler(CPhidgetInterfaceKitHandle ik, void *userptr, int index, int inputValue)
int getInputCount() const
void init(CPhidgetHandle handle)
int getSensorRawValue(int index) const
virtual void sensorHandler(int index, int sensorValue)