diff options
author | inmarket <andrewh@inmarket.com.au> | 2014-11-07 12:02:41 +1000 |
---|---|---|
committer | inmarket <andrewh@inmarket.com.au> | 2014-11-07 12:02:41 +1000 |
commit | bd041926b43676e2bf597c98149f9a6df8f8004b (patch) | |
tree | 22a9db91876fbac50f874539e42a0dad8b5de3fc /drivers/multiple/uGFXnet | |
parent | f552ba62afc6cdb72fbb1b4dcdcc96000895a1cd (diff) | |
download | uGFX-bd041926b43676e2bf597c98149f9a6df8f8004b.tar.gz uGFX-bd041926b43676e2bf597c98149f9a6df8f8004b.tar.bz2 uGFX-bd041926b43676e2bf597c98149f9a6df8f8004b.zip |
Allow a mouse driver to not return any results when it is polled.
Diffstat (limited to 'drivers/multiple/uGFXnet')
-rw-r--r-- | drivers/multiple/uGFXnet/gdisp_lld_uGFXnet.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/multiple/uGFXnet/gdisp_lld_uGFXnet.c b/drivers/multiple/uGFXnet/gdisp_lld_uGFXnet.c index 559b0c69..3b42bcda 100644 --- a/drivers/multiple/uGFXnet/gdisp_lld_uGFXnet.c +++ b/drivers/multiple/uGFXnet/gdisp_lld_uGFXnet.c @@ -40,7 +40,7 @@ // Forward definitions static bool_t NMouseInit(GMouse *m, unsigned driverinstance); - static void NMouseRead(GMouse *m, GMouseReading *prd); + static bool_t NMouseRead(GMouse *m, GMouseReading *prd); const GMouseVMT const GMOUSE_DRIVER_VMT[1] = {{ { @@ -710,7 +710,7 @@ LLDSPEC bool_t gdisp_lld_init(GDisplay *g) { (void) driverinstance; return TRUE; } - static void NMouseRead(GMouse *m, GMouseReading *pt) { + static bool_t NMouseRead(GMouse *m, GMouseReading *pt) { GDisplay * g; netPriv * priv; @@ -721,6 +721,7 @@ LLDSPEC bool_t gdisp_lld_init(GDisplay *g) { pt->y = priv->mousey; pt->z = (priv->mousebuttons & GINPUT_MOUSE_BTN_LEFT) ? 1 : 0; pt->buttons = priv->mousebuttons; + return TRUE; } #endif /* GINPUT_NEED_MOUSE */ |