diff options
author | Tectu <joel@unormal.org> | 2012-06-15 10:18:52 +0200 |
---|---|---|
committer | Tectu <joel@unormal.org> | 2012-06-15 10:18:52 +0200 |
commit | c7a393c6d789bc68387205447082cdf2106862f8 (patch) | |
tree | 4d3d9a5ecde4c3d204482f3f8d9e40c07884f663 /touchpad.c | |
parent | 83d3135ab1683c29edc6e76ad34ff61d9df69572 (diff) | |
download | uGFX-c7a393c6d789bc68387205447082cdf2106862f8.tar.gz uGFX-c7a393c6d789bc68387205447082cdf2106862f8.tar.bz2 uGFX-c7a393c6d789bc68387205447082cdf2106862f8.zip |
added support for 3D touchpads
Diffstat (limited to 'touchpad.c')
-rw-r--r-- | touchpad.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -96,6 +96,10 @@ uint16_t tpReadY(void) { return y; } +uint16_t tpReadZ(void) { + return lld_readZ(); +} + static void tpDrawCross(uint16_t x, uint16_t y) { lcdDrawLine(x-15, y, x-2, y, 0xffff); lcdDrawLine(x+2, y, x+15, y, 0xffff); |