aboutsummaryrefslogtreecommitdiffstats
path: root/cphidgetencoder.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--cphidgetencoder.c3
1 files changed, 3 insertions, 0 deletions
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)