aboutsummaryrefslogtreecommitdiffstats
path: root/Java/com_phidgets_WeightSensorPhidget.c
blob: 59a88bd50395d811f071069c465d5bdf9457d4e3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#include "../stdafx.h"
#include "phidget_jni.h"
#include "com_phidgets_WeightSensorPhidget.h"
#include "../cphidgetweightsensor.h"

EVENT_VARS(weightChange, WeightChange)

JNI_LOAD(weight, WeightSensor)
	EVENT_VAR_SETUP(weight, weightChange, WeightChange, D, V)
}

EVENT_HANDLER(WeightSensor, weightChange, WeightChange, 
			  CPhidgetWeightSensor_set_OnWeightChange_Handler, double)

JNI_CREATE(WeightSensor)
JNI_GETFUNC(WeightSensor, WeightChangeTrigger, WeightChangeTrigger, jdouble)
JNI_SETFUNC(WeightSensor, WeightChangeTrigger, WeightChangeTrigger, jdouble)
JNI_GETFUNC(WeightSensor, Weight, Weight, jdouble)