Skip to content

Commit

Permalink
Merge pull request #7879 from mkortstiege/nuke-dialog-gamepad
Browse files Browse the repository at this point in the history
[dialog] use DialogOK as basis for the gamepad dialog
  • Loading branch information
mkortstiege committed Sep 1, 2015
2 parents e894fb2 + df96ec3 commit 8890ef7
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 54 deletions.
53 changes: 0 additions & 53 deletions addons/skin.confluence/720p/DialogGamepad.xml

This file was deleted.

10 changes: 9 additions & 1 deletion xbmc/dialogs/GUIDialogGamepad.cpp
Expand Up @@ -31,7 +31,7 @@
#include <utility>

CGUIDialogGamepad::CGUIDialogGamepad(void)
: CGUIDialogBoxBase(WINDOW_DIALOG_GAMEPAD, "DialogGamepad.xml")
: CGUIDialogBoxBase(WINDOW_DIALOG_GAMEPAD, "DialogOK.xml")
{
m_bCanceled = false;
m_iRetries = 0;
Expand All @@ -43,6 +43,14 @@ CGUIDialogGamepad::CGUIDialogGamepad(void)
CGUIDialogGamepad::~CGUIDialogGamepad(void)
{}

void CGUIDialogGamepad::OnInitWindow()
{
// hide ok button from DialogOK
SET_CONTROL_HIDDEN(10);

CGUIDialogBoxBase::OnInitWindow();
}

bool CGUIDialogGamepad::OnAction(const CAction &action)
{
if ((action.GetButtonCode() >= KEY_BUTTON_A &&
Expand Down
1 change: 1 addition & 0 deletions xbmc/dialogs/GUIDialogGamepad.h
Expand Up @@ -41,6 +41,7 @@ class CGUIDialogGamepad :
static bool ShowAndVerifyInput(std::string& strPassword, const std::string& dlgHeading, const std::string& dlgLine0, const std::string& dlgLine1, const std::string& dlgLine2, bool bGetUserInput, bool bHideInputChars);
protected:
virtual bool OnAction(const CAction &action);
virtual void OnInitWindow();
bool m_bCanceled;
char m_cHideInputChar;
};

0 comments on commit 8890ef7

Please sign in to comment.