X-Git-Url: http://code.vuplus.com/gitweb/?a=blobdiff_plain;f=xbmc%2Finput%2FMouseStat.cpp;h=77ace26c9231ca544ec26d0b2a3709a8abcb858a;hb=3216b42f0675b12a9ad4d6d2b9c49703c16340da;hp=fb27d92687312827080f29143a511c091553e6ab;hpb=f57cd9abca1d8ae1938194344661201f496731ff;p=vuplus_xbmc diff --git a/xbmc/input/MouseStat.cpp b/xbmc/input/MouseStat.cpp index fb27d92..77ace26 100644 --- a/xbmc/input/MouseStat.cpp +++ b/xbmc/input/MouseStat.cpp @@ -160,8 +160,8 @@ void CMouseStat::HandleEvent(XBMC_Event& newEvent) else if (m_mouseState.dz < 0) m_Action = ACTION_MOUSE_WHEEL_DOWN; - // Finally check for a mouse move (that isn't a drag) - else if (newEvent.type == XBMC_MOUSEMOTION) + // Check for a mouse move that isn't a drag, ignoring messages with no movement at all + else if (newEvent.type == XBMC_MOUSEMOTION && (m_mouseState.dx || m_mouseState.dy)) m_Action = ACTION_MOUSE_MOVE; // ignore any other mouse messages