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
commit2891593727a0151a66ed7860fed6399548c74c02 (patch)
tree1cb52da179b4ab23ba2a22f44d88ea3523f51f0c /cphidgetencoder.c
parentcff96463a694573a9f87b014482a45c25bf4c7b0 (diff)
parent8f3c91e91b634adaca77dac6cf314445cceefc78 (diff)
downloadlibphidget21-2891593727a0151a66ed7860fed6399548c74c02.tar.gz
Merge tag 'upstream/2.1.8.20120912'
Upstream version 2.1.8.20120912
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)