1 /* 2 * Copyright (C) 2014-2018 Team Kodi 3 * This file is part of Kodi - https://kodi.tv 4 * 5 * SPDX-License-Identifier: GPL-2.0-or-later 6 * See LICENSES/README.md for more information. 7 */ 8 9 #include "GUIControllerButton.h" 10 11 #include "games/controllers/windows/GUIControllerDefines.h" 12 13 using namespace KODI; 14 using namespace GAME; 15 CGUIControllerButton(const CGUIButtonControl & buttonControl,const std::string & label,unsigned int index)16CGUIControllerButton::CGUIControllerButton(const CGUIButtonControl& buttonControl, 17 const std::string& label, 18 unsigned int index) 19 : CGUIButtonControl(buttonControl) 20 { 21 // Initialize CGUIButtonControl 22 SetLabel(label); 23 SetID(CONTROL_CONTROLLER_BUTTONS_START + index); 24 SetVisible(true); 25 AllocResources(); 26 } 27