Ejemplo n.º 1
0
bool CFlashPlayerDlg::GetKeyCommand(LONG_PTR KeyNumber,CString &cmd, CString &value)
{
	CString key, abs;
	for(int i = 0 ; i < m_inputs.GetSize() ; i++) {
		m_inputs.GetAt(i, key ,cmd, value, abs);
		if( KeyNumber == GetKeyNumber(key) )
			return true;
	}
	return false;
}
bool CGUIDialogKaraokeSongSelector::OnAction(const CAction & action)
{
  CLog::Log( LOGDEBUG, "CGUIDialogKaraokeSongSelector::OnAction %d" , action.GetID());
  
  if ( GetKeyNumber( action.GetID() ) != -1 )
  {
    OnButtonNumeric( GetKeyNumber( action.GetID() ) );
    return true;
  }
  
  switch(action.GetID())
  {
    case ACTION_SELECT_ITEM:
      OnButtonSelect();
      break;

    case ACTION_DELETE_ITEM:
    case ACTION_BACKSPACE:
      OnBackspace();
      break;
  }

  return CGUIDialog::OnAction( action );
}