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/Win32 | |
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/Win32')
-rw-r--r-- | drivers/multiple/Win32/gdisp_lld_Win32.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/multiple/Win32/gdisp_lld_Win32.c b/drivers/multiple/Win32/gdisp_lld_Win32.c index ecb100f6..13c5e544 100644 --- a/drivers/multiple/Win32/gdisp_lld_Win32.c +++ b/drivers/multiple/Win32/gdisp_lld_Win32.c @@ -69,7 +69,7 @@ // Forward definitions static bool_t Win32MouseInit(GMouse *m, unsigned driverinstance); - static void Win32MouseRead(GMouse *m, GMouseReading *prd); + static bool_t Win32MouseRead(GMouse *m, GMouseReading *prd); const GMouseVMT const GMOUSE_DRIVER_VMT[1] = {{ { @@ -1169,7 +1169,7 @@ LLDSPEC bool_t gdisp_lld_init(GDisplay *g) { (void) driverinstance; return TRUE; } - static void Win32MouseRead(GMouse *m, GMouseReading *pt) { + static bool_t Win32MouseRead(GMouse *m, GMouseReading *pt) { GDisplay * g; winPriv * priv; @@ -1207,6 +1207,8 @@ LLDSPEC bool_t gdisp_lld_init(GDisplay *g) { } } #endif + + return TRUE; } #endif /* GINPUT_NEED_MOUSE */ |