From 8f3c91e91b634adaca77dac6cf314445cceefc78 Mon Sep 17 00:00:00 2001 From: Jonathan McCrohan Date: Fri, 19 Oct 2012 19:38:06 +0100 Subject: Imported Upstream version 2.1.8.20120912 --- cphidgetencoder.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'cphidgetencoder.c') diff --git a/cphidgetencoder.c b/cphidgetencoder.c index 3c1991f..df9eec0 100644 --- a/cphidgetencoder.c +++ b/cphidgetencoder.c @@ -279,6 +279,8 @@ CPHIDGETDATA(Encoder) { if(positionChange[i] != 0) FIRE(PositionChange, i, timeChangeInt[i], positionChange[i]); + if(indexTrue[i] != 0) + FIRE(IndexChange, i, phid->indexPosition[i]); } return EPHIDGET_OK; @@ -348,6 +350,7 @@ CCREATE(Encoder, PHIDCLASS_ENCODER) //event setup functions CFHANDLE(Encoder, InputChange, int, int) CFHANDLE(Encoder, PositionChange, int, int, int) +CFHANDLE(Encoder, IndexChange, int, int) CGET(Encoder,InputCount,int) TESTPTRS(phid,pVal) -- cgit v1.2.3