2010-02-09, 03:57
not sure if I am reading this correctly, but it appears as though the following code in GUIDialogMusicOSD.cpp causes the left mouse click to send a pause to the player if detected, when in the OSD (musicvisualization).
Is there a specific reason this is done? Could play/pause/stop/start not be left to the skin to present an action/button on the screen.
If you're a touchscreen user, your only option is to press the screen to present a menu bar.. Unfortunately with this present, if a touchscreen user hits the screen (which emulates a left click), music stops...
Is there a specific reason this is done? Could play/pause/stop/start not be left to the skin to present an action/button on the screen.
If you're a touchscreen user, your only option is to press the screen to present a menu bar.. Unfortunately with this present, if a touchscreen user hits the screen (which emulates a left click), music stops...
Code:
bool CGUIDialogMusicOSD::OnMouseEvent(const CPoint &point, const CMouseEvent &event)
{
if (event.m_id == ACTION_MOUSE_LEFT_CLICK)
{ // pause
CAction action;
action.actionId = ACTION_PAUSE;
return g_application.OnAction(action);
}
return CGUIDialog::OnMouseEvent(point, event);
}