aboutsummaryrefslogtreecommitdiffstats
path: root/cphidgetencoder.c
diff options
context:
space:
mode:
authorJonathan McCrohan <jmccrohan@gmail.com>2012-10-19 19:38:06 +0100
committerJonathan McCrohan <jmccrohan@gmail.com>2012-10-19 19:38:06 +0100
commit8f3c91e91b634adaca77dac6cf314445cceefc78 (patch)
tree8a779a28ccfbbfae413f6f7df21fb0a8650d3747 /cphidgetencoder.c
parentbd7a4f258643bf72d5e97f86f0f2272b381ed1ba (diff)
downloadlibphidget21-8f3c91e91b634adaca77dac6cf314445cceefc78.tar.gz
Imported Upstream version 2.1.8.20120912upstream/2.1.8.20120912
Diffstat (limited to 'cphidgetencoder.c')
-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)