Skip to content

Commit

Permalink
[Fix] Send out correct mouse motion event in generic touch action han…
Browse files Browse the repository at this point in the history
…dler.
  • Loading branch information
ulion committed Apr 3, 2013
1 parent 4a700df commit a38b08d
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion xbmc/input/touch/generic/GenericTouchActionHandler.cpp
Expand Up @@ -190,5 +190,13 @@ void CGenericTouchActionHandler::sendEvent(int actionId, float x, float y, float
void CGenericTouchActionHandler::focusControl(float x, float y)
{
// Send a mouse motion event for getting the current guiitem selected
touch(XBMC_MOUSEMOTION, 0, (uint16_t)x, (uint16_t)y);
XBMC_Event newEvent;
memset(&newEvent, 0, sizeof(newEvent));

newEvent.type = XBMC_MOUSEMOTION;
newEvent.motion.type = XBMC_MOUSEMOTION;
newEvent.motion.x = x;
newEvent.motion.y = y;

CWinEvents::MessagePush(&newEvent);
}

0 comments on commit a38b08d

Please sign in to comment.