diff options
| author | Joel Bodenmann <joel@unormal.org> | 2013-07-14 20:02:28 +0200 | 
|---|---|---|
| committer | Joel Bodenmann <joel@unormal.org> | 2013-07-14 20:02:28 +0200 | 
| commit | 38a2a44b3d27ca29019cd0d75e60233ee9188c71 (patch) | |
| tree | 6cd0e65ba5ce5b0884d5cd4085795e347b5fa509 /src/ginput/dial.c | |
| parent | b7e6967886a25277af53e04ce6942b715b538644 (diff) | |
| parent | c5ec72027787c9cd5f5b36a46eb55f03fd95d894 (diff) | |
| download | uGFX-38a2a44b3d27ca29019cd0d75e60233ee9188c71.tar.gz uGFX-38a2a44b3d27ca29019cd0d75e60233ee9188c71.tar.bz2 uGFX-38a2a44b3d27ca29019cd0d75e60233ee9188c71.zip  | |
Merge branch 'GWIN'
Diffstat (limited to 'src/ginput/dial.c')
| -rw-r--r-- | src/ginput/dial.c | 2 | 
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ginput/dial.c b/src/ginput/dial.c index 3afb4796..d978aa65 100644 --- a/src/ginput/dial.c +++ b/src/ginput/dial.c @@ -57,6 +57,7 @@ static void DialCallback(uint16_t instance, uint16_t rawvalue) {  		pe->type = GEVENT_DIAL;  		pe->instance = instance;  		pe->value = pds->lastvalue; +		pe->maxvalue = pds->max;  		geventSendEvent(psl);  	}  } @@ -144,6 +145,7 @@ bool_t ginputGetDialStatus(uint16_t instance, GEventDial *pdial) {  	pdial->type = GEVENT_DIAL;  	pdial->instance = instance;  	pdial->value = DialStatus[instance].lastvalue; +	pdial->maxvalue = DialStatus[instance].max;  	return TRUE;  }  | 
