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);
}
Search
Help