Match more .stkgui and .cpp file names.
This commit is contained in:
parent
a49fdca521
commit
d391727879
@ -39,7 +39,7 @@
|
|||||||
#include "replay/replay_recorder.hpp"
|
#include "replay/replay_recorder.hpp"
|
||||||
#include "states_screens/kart_selection.hpp"
|
#include "states_screens/kart_selection.hpp"
|
||||||
#include "states_screens/main_menu_screen.hpp"
|
#include "states_screens/main_menu_screen.hpp"
|
||||||
#include "states_screens/options_screen_input2.hpp"
|
#include "states_screens/options_screen_device.hpp"
|
||||||
#include "states_screens/state_manager.hpp"
|
#include "states_screens/state_manager.hpp"
|
||||||
#include "utils/string_utils.hpp"
|
#include "utils/string_utils.hpp"
|
||||||
|
|
||||||
@ -425,7 +425,7 @@ void InputManager::inputSensing(Input::InputType type, int deviceID,
|
|||||||
sensed_input.m_device_id = deviceID;
|
sensed_input.m_device_id = deviceID;
|
||||||
sensed_input.m_button_id = button;
|
sensed_input.m_button_id = button;
|
||||||
sensed_input.m_character = deviceID;
|
sensed_input.m_character = deviceID;
|
||||||
OptionsScreenInput2::getInstance()->gotSensedInput(sensed_input);
|
OptionsScreenDevice::getInstance()->gotSensedInput(sensed_input);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
@ -437,7 +437,7 @@ void InputManager::inputSensing(Input::InputType type, int deviceID,
|
|||||||
sensed_input.m_device_id = deviceID;
|
sensed_input.m_device_id = deviceID;
|
||||||
sensed_input.m_button_id = button;
|
sensed_input.m_button_id = button;
|
||||||
sensed_input.m_character = deviceID;
|
sensed_input.m_character = deviceID;
|
||||||
OptionsScreenInput2::getInstance()->gotSensedInput(sensed_input);
|
OptionsScreenDevice::getInstance()->gotSensedInput(sensed_input);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
@ -472,7 +472,7 @@ void InputManager::inputSensing(Input::InputType type, int deviceID,
|
|||||||
: Input::AD_NEGATIVE;
|
: Input::AD_NEGATIVE;
|
||||||
sensed_input.m_axis_range = Input::AR_FULL;
|
sensed_input.m_axis_range = Input::AR_FULL;
|
||||||
sensed_input.m_character = deviceID;
|
sensed_input.m_character = deviceID;
|
||||||
OptionsScreenInput2::getInstance()->gotSensedInput(sensed_input);
|
OptionsScreenDevice::getInstance()->gotSensedInput(sensed_input);
|
||||||
|
|
||||||
}
|
}
|
||||||
else m_sensed_input_high_gamepad.insert(input_id);
|
else m_sensed_input_high_gamepad.insert(input_id);
|
||||||
@ -494,7 +494,7 @@ void InputManager::inputSensing(Input::InputType type, int deviceID,
|
|||||||
sensed_input.m_axis_range = id_was_zero ? Input::AR_HALF
|
sensed_input.m_axis_range = id_was_zero ? Input::AR_HALF
|
||||||
: Input::AR_FULL;
|
: Input::AR_FULL;
|
||||||
sensed_input.m_character = deviceID;
|
sensed_input.m_character = deviceID;
|
||||||
OptionsScreenInput2::getInstance()->gotSensedInput(sensed_input);
|
OptionsScreenDevice::getInstance()->gotSensedInput(sensed_input);
|
||||||
}
|
}
|
||||||
else if( inverse_id_was_high )
|
else if( inverse_id_was_high )
|
||||||
{
|
{
|
||||||
@ -510,7 +510,7 @@ void InputManager::inputSensing(Input::InputType type, int deviceID,
|
|||||||
sensed_input.m_axis_range = id_was_zero ? Input::AR_HALF
|
sensed_input.m_axis_range = id_was_zero ? Input::AR_HALF
|
||||||
: Input::AR_FULL;
|
: Input::AR_FULL;
|
||||||
sensed_input.m_character = deviceID;
|
sensed_input.m_character = deviceID;
|
||||||
OptionsScreenInput2::getInstance()->gotSensedInput(sensed_input);
|
OptionsScreenDevice::getInstance()->gotSensedInput(sensed_input);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -20,7 +20,7 @@
|
|||||||
#include "input/input.hpp"
|
#include "input/input.hpp"
|
||||||
#include "input/input_manager.hpp"
|
#include "input/input_manager.hpp"
|
||||||
#include "states_screens/dialogs/press_a_key_dialog.hpp"
|
#include "states_screens/dialogs/press_a_key_dialog.hpp"
|
||||||
#include "states_screens/options_screen_input2.hpp"
|
#include "states_screens/options_screen_device.hpp"
|
||||||
#include "utils/translation.hpp"
|
#include "utils/translation.hpp"
|
||||||
|
|
||||||
using namespace GUIEngine;
|
using namespace GUIEngine;
|
||||||
@ -47,13 +47,13 @@ GUIEngine::EventPropagation PressAKeyDialog::processEvent(const std::string& eve
|
|||||||
else if (eventSource == "assignNone")
|
else if (eventSource == "assignNone")
|
||||||
{
|
{
|
||||||
Input simulatedInput;
|
Input simulatedInput;
|
||||||
OptionsScreenInput2::getInstance()->gotSensedInput(simulatedInput);
|
OptionsScreenDevice::getInstance()->gotSensedInput(simulatedInput);
|
||||||
return GUIEngine::EVENT_BLOCK;
|
return GUIEngine::EVENT_BLOCK;
|
||||||
}
|
}
|
||||||
else if (eventSource == "assignEsc")
|
else if (eventSource == "assignEsc")
|
||||||
{
|
{
|
||||||
Input simulatedInput(Input::IT_KEYBOARD, 0 /* deviceID */, KEY_ESCAPE);
|
Input simulatedInput(Input::IT_KEYBOARD, 0 /* deviceID */, KEY_ESCAPE);
|
||||||
OptionsScreenInput2::getInstance()->gotSensedInput(simulatedInput);
|
OptionsScreenDevice::getInstance()->gotSensedInput(simulatedInput);
|
||||||
return GUIEngine::EVENT_BLOCK;
|
return GUIEngine::EVENT_BLOCK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -72,7 +72,7 @@ bool MainMenuScreen::m_enable_online = false;
|
|||||||
|
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
|
|
||||||
MainMenuScreen::MainMenuScreen() : Screen("main.stkgui")
|
MainMenuScreen::MainMenuScreen() : Screen("main_menu.stkgui")
|
||||||
{
|
{
|
||||||
} // MainMenuScreen
|
} // MainMenuScreen
|
||||||
|
|
||||||
|
@ -45,7 +45,7 @@ DEFINE_SCREEN_SINGLETON( NetworkingLobby );
|
|||||||
|
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
|
|
||||||
NetworkingLobby::NetworkingLobby() : Screen("online/lobby.stkgui")
|
NetworkingLobby::NetworkingLobby() : Screen("online/network_lobby.stkgui")
|
||||||
{
|
{
|
||||||
m_server = NULL;
|
m_server = NULL;
|
||||||
} // NetworkingLobby
|
} // NetworkingLobby
|
||||||
|
@ -15,7 +15,7 @@
|
|||||||
// along with this program; if not, write to the Free Software
|
// along with this program; if not, write to the Free Software
|
||||||
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
|
|
||||||
#include "states_screens/options_screen_input2.hpp"
|
#include "states_screens/options_screen_device.hpp"
|
||||||
|
|
||||||
#include "config/user_config.hpp"
|
#include "config/user_config.hpp"
|
||||||
#include "guiengine/CGUISpriteBank.hpp"
|
#include "guiengine/CGUISpriteBank.hpp"
|
||||||
@ -45,24 +45,24 @@
|
|||||||
|
|
||||||
using namespace GUIEngine;
|
using namespace GUIEngine;
|
||||||
|
|
||||||
DEFINE_SCREEN_SINGLETON( OptionsScreenInput2 );
|
DEFINE_SCREEN_SINGLETON( OptionsScreenDevice );
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
|
|
||||||
OptionsScreenInput2::OptionsScreenInput2() : Screen("options_device.stkgui")
|
OptionsScreenDevice::OptionsScreenDevice() : Screen("options_device.stkgui")
|
||||||
{
|
{
|
||||||
m_config = NULL;
|
m_config = NULL;
|
||||||
} // OptionsScreenInput2
|
} // OptionsScreenDevice
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
|
|
||||||
void OptionsScreenInput2::loadedFromFile()
|
void OptionsScreenDevice::loadedFromFile()
|
||||||
{
|
{
|
||||||
} // loadedFromFile
|
} // loadedFromFile
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
|
|
||||||
void OptionsScreenInput2::beforeAddingWidget()
|
void OptionsScreenDevice::beforeAddingWidget()
|
||||||
{
|
{
|
||||||
GUIEngine::ListWidget* w_list =
|
GUIEngine::ListWidget* w_list =
|
||||||
getWidget<GUIEngine::ListWidget>("actions");
|
getWidget<GUIEngine::ListWidget>("actions");
|
||||||
@ -75,7 +75,7 @@ void OptionsScreenInput2::beforeAddingWidget()
|
|||||||
|
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
|
|
||||||
void OptionsScreenInput2::init()
|
void OptionsScreenDevice::init()
|
||||||
{
|
{
|
||||||
Screen::init();
|
Screen::init();
|
||||||
RibbonWidget* tabBar = getWidget<RibbonWidget>("options_choice");
|
RibbonWidget* tabBar = getWidget<RibbonWidget>("options_choice");
|
||||||
@ -165,7 +165,7 @@ void OptionsScreenInput2::init()
|
|||||||
|
|
||||||
// -----------------------------------------------------------------------------
|
// -----------------------------------------------------------------------------
|
||||||
|
|
||||||
void OptionsScreenInput2::addListItemSubheader(GUIEngine::ListWidget* actions,
|
void OptionsScreenDevice::addListItemSubheader(GUIEngine::ListWidget* actions,
|
||||||
const char* id,
|
const char* id,
|
||||||
const core::stringw& text)
|
const core::stringw& text)
|
||||||
{
|
{
|
||||||
@ -177,7 +177,7 @@ void OptionsScreenInput2::addListItemSubheader(GUIEngine::ListWidget* actions,
|
|||||||
|
|
||||||
// -----------------------------------------------------------------------------
|
// -----------------------------------------------------------------------------
|
||||||
|
|
||||||
void OptionsScreenInput2::addListItem(GUIEngine::ListWidget* actions,
|
void OptionsScreenDevice::addListItem(GUIEngine::ListWidget* actions,
|
||||||
PlayerAction pa)
|
PlayerAction pa)
|
||||||
{
|
{
|
||||||
std::vector<GUIEngine::ListWidget::ListCell> row;
|
std::vector<GUIEngine::ListWidget::ListCell> row;
|
||||||
@ -189,7 +189,7 @@ void OptionsScreenInput2::addListItem(GUIEngine::ListWidget* actions,
|
|||||||
|
|
||||||
// -----------------------------------------------------------------------------
|
// -----------------------------------------------------------------------------
|
||||||
|
|
||||||
void OptionsScreenInput2::renameRow(GUIEngine::ListWidget* actions,
|
void OptionsScreenDevice::renameRow(GUIEngine::ListWidget* actions,
|
||||||
int idRow,
|
int idRow,
|
||||||
const irr::core::stringw &translatedName,
|
const irr::core::stringw &translatedName,
|
||||||
PlayerAction action) const
|
PlayerAction action) const
|
||||||
@ -201,7 +201,7 @@ void OptionsScreenInput2::renameRow(GUIEngine::ListWidget* actions,
|
|||||||
|
|
||||||
// -----------------------------------------------------------------------------
|
// -----------------------------------------------------------------------------
|
||||||
|
|
||||||
void OptionsScreenInput2::updateInputButtons()
|
void OptionsScreenDevice::updateInputButtons()
|
||||||
{
|
{
|
||||||
assert(m_config != NULL);
|
assert(m_config != NULL);
|
||||||
|
|
||||||
@ -372,7 +372,7 @@ void OptionsScreenInput2::updateInputButtons()
|
|||||||
static PlayerAction binding_to_set;
|
static PlayerAction binding_to_set;
|
||||||
static std::string binding_to_set_button;
|
static std::string binding_to_set_button;
|
||||||
|
|
||||||
void OptionsScreenInput2::gotSensedInput(const Input& sensed_input)
|
void OptionsScreenDevice::gotSensedInput(const Input& sensed_input)
|
||||||
{
|
{
|
||||||
const bool keyboard = (m_config->isKeyboard() &&
|
const bool keyboard = (m_config->isKeyboard() &&
|
||||||
sensed_input.m_type == Input::IT_KEYBOARD);
|
sensed_input.m_type == Input::IT_KEYBOARD);
|
||||||
@ -384,7 +384,7 @@ void OptionsScreenInput2::gotSensedInput(const Input& sensed_input)
|
|||||||
{
|
{
|
||||||
if (UserConfigParams::logMisc())
|
if (UserConfigParams::logMisc())
|
||||||
{
|
{
|
||||||
Log::info("OptionsScreenInput2", "Binding %s: setting to keyboard key %d",
|
Log::info("OptionsScreenDevice", "Binding %s: setting to keyboard key %d",
|
||||||
KartActionStrings[binding_to_set].c_str(), sensed_input.m_button_id);
|
KartActionStrings[binding_to_set].c_str(), sensed_input.m_button_id);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -401,21 +401,21 @@ void OptionsScreenInput2::gotSensedInput(const Input& sensed_input)
|
|||||||
{
|
{
|
||||||
if (UserConfigParams::logMisc())
|
if (UserConfigParams::logMisc())
|
||||||
{
|
{
|
||||||
Log::info("OptionsScreenInput2", "Binding %s: setting to gamepad #%d",
|
Log::info("OptionsScreenDevice", "Binding %s: setting to gamepad #%d",
|
||||||
KartActionStrings[binding_to_set].c_str(), sensed_input.m_device_id);
|
KartActionStrings[binding_to_set].c_str(), sensed_input.m_device_id);
|
||||||
|
|
||||||
if (sensed_input.m_type == Input::IT_STICKMOTION)
|
if (sensed_input.m_type == Input::IT_STICKMOTION)
|
||||||
{
|
{
|
||||||
Log::info("OptionsScreenInput2", "Axis %d; direction %s", sensed_input.m_button_id,
|
Log::info("OptionsScreenDevice", "Axis %d; direction %s", sensed_input.m_button_id,
|
||||||
sensed_input.m_axis_direction == Input::AD_NEGATIVE ? "-" : "+");
|
sensed_input.m_axis_direction == Input::AD_NEGATIVE ? "-" : "+");
|
||||||
}
|
}
|
||||||
else if (sensed_input.m_type == Input::IT_STICKBUTTON)
|
else if (sensed_input.m_type == Input::IT_STICKBUTTON)
|
||||||
{
|
{
|
||||||
Log::info("OptionsScreenInput2", "Button %d", sensed_input.m_button_id);
|
Log::info("OptionsScreenDevice", "Button %d", sensed_input.m_button_id);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
Log::info("OptionsScreenInput2", "Sensed unknown gamepad event type??");
|
Log::info("OptionsScreenDevice", "Sensed unknown gamepad event type??");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -439,7 +439,7 @@ void OptionsScreenInput2::gotSensedInput(const Input& sensed_input)
|
|||||||
{
|
{
|
||||||
if (UserConfigParams::logMisc())
|
if (UserConfigParams::logMisc())
|
||||||
{
|
{
|
||||||
Log::info("OptionsScreenInput2", "Binding %s: setting to keyboard key NONE",
|
Log::info("OptionsScreenDevice", "Binding %s: setting to keyboard key NONE",
|
||||||
KartActionStrings[binding_to_set].c_str());
|
KartActionStrings[binding_to_set].c_str());
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -481,7 +481,7 @@ void OptionsScreenInput2::gotSensedInput(const Input& sensed_input)
|
|||||||
|
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
void OptionsScreenInput2::eventCallback(Widget* widget,
|
void OptionsScreenDevice::eventCallback(Widget* widget,
|
||||||
const std::string& name,
|
const std::string& name,
|
||||||
const int playerID)
|
const int playerID)
|
||||||
{
|
{
|
||||||
@ -529,7 +529,7 @@ void OptionsScreenInput2::eventCallback(Widget* widget,
|
|||||||
// we found which one. show the "press a key" dialog.
|
// we found which one. show the "press a key" dialog.
|
||||||
if (UserConfigParams::logMisc())
|
if (UserConfigParams::logMisc())
|
||||||
{
|
{
|
||||||
Log::info("OptionsScreenInput2", "Entering sensing mode for %s",
|
Log::info("OptionsScreenDevice", "Entering sensing mode for %s",
|
||||||
m_config->getName().c_str());
|
m_config->getName().c_str());
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -547,7 +547,7 @@ void OptionsScreenInput2::eventCallback(Widget* widget,
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
Log::error("OptionsScreenInput2", "Unknown selection device in options: %s",
|
Log::error("OptionsScreenDevice", "Unknown selection device in options: %s",
|
||||||
m_config->getName().c_str());
|
m_config->getName().c_str());
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
@ -583,13 +583,13 @@ void OptionsScreenInput2::eventCallback(Widget* widget,
|
|||||||
|
|
||||||
// -----------------------------------------------------------------------------
|
// -----------------------------------------------------------------------------
|
||||||
|
|
||||||
void OptionsScreenInput2::unloaded()
|
void OptionsScreenDevice::unloaded()
|
||||||
{
|
{
|
||||||
} // unloaded
|
} // unloaded
|
||||||
|
|
||||||
// -----------------------------------------------------------------------------
|
// -----------------------------------------------------------------------------
|
||||||
|
|
||||||
bool OptionsScreenInput2::onEscapePressed()
|
bool OptionsScreenDevice::onEscapePressed()
|
||||||
{
|
{
|
||||||
StateManager::get()
|
StateManager::get()
|
||||||
->replaceTopMostScreen(OptionsScreenInput::getInstance());
|
->replaceTopMostScreen(OptionsScreenInput::getInstance());
|
||||||
@ -599,13 +599,13 @@ bool OptionsScreenInput2::onEscapePressed()
|
|||||||
|
|
||||||
// -----------------------------------------------------------------------------
|
// -----------------------------------------------------------------------------
|
||||||
|
|
||||||
void OptionsScreenInput2::onConfirm()
|
void OptionsScreenDevice::onConfirm()
|
||||||
{
|
{
|
||||||
const bool success =
|
const bool success =
|
||||||
input_manager->getDeviceManager()->deleteConfig(m_config);
|
input_manager->getDeviceManager()->deleteConfig(m_config);
|
||||||
assert(success);
|
assert(success);
|
||||||
if (!success)
|
if (!success)
|
||||||
Log::error("OptionsScreenInput2", "Failed to delete config!");
|
Log::error("OptionsScreenDevice", "Failed to delete config!");
|
||||||
|
|
||||||
m_config = NULL;
|
m_config = NULL;
|
||||||
input_manager->getDeviceManager()->save();
|
input_manager->getDeviceManager()->save();
|
||||||
@ -617,8 +617,9 @@ void OptionsScreenInput2::onConfirm()
|
|||||||
// -----------------------------------------------------------------------------
|
// -----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
|
||||||
bool OptionsScreenInput2::conflictsBetweenKbdConfig(PlayerAction action,
|
bool OptionsScreenDevice::conflictsBetweenKbdConfig(PlayerAction action,
|
||||||
PlayerAction from, PlayerAction to)
|
PlayerAction from,
|
||||||
|
PlayerAction to)
|
||||||
{
|
{
|
||||||
KeyboardConfig* other_kbd_config;
|
KeyboardConfig* other_kbd_config;
|
||||||
int id = m_config->getBinding(action).getId();
|
int id = m_config->getBinding(action).getId();
|
@ -16,8 +16,8 @@
|
|||||||
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
|
|
||||||
|
|
||||||
#ifndef __HEADER_OPTIONS_SCREEN_INPUT2_HPP__
|
#ifndef HEADER_OPTIONS_SCREEN_DEVICE_HPP
|
||||||
#define __HEADER_OPTIONS_SCREEN_INPUT2_HPP__
|
#define HEADER_OPTIONS_SCREEN_DEVICE_HPP
|
||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <irrString.h>
|
#include <irrString.h>
|
||||||
@ -37,11 +37,11 @@ struct Input;
|
|||||||
* \brief Input options screen
|
* \brief Input options screen
|
||||||
* \ingroup states_screens
|
* \ingroup states_screens
|
||||||
*/
|
*/
|
||||||
class OptionsScreenInput2 : public GUIEngine::Screen,
|
class OptionsScreenDevice : public GUIEngine::Screen,
|
||||||
public GUIEngine::ScreenSingleton<OptionsScreenInput2>,
|
public GUIEngine::ScreenSingleton<OptionsScreenDevice>,
|
||||||
public MessageDialog::IConfirmDialogListener
|
public MessageDialog::IConfirmDialogListener
|
||||||
{
|
{
|
||||||
OptionsScreenInput2();
|
OptionsScreenDevice();
|
||||||
|
|
||||||
void updateInputButtons();
|
void updateInputButtons();
|
||||||
|
|
||||||
@ -62,7 +62,7 @@ class OptionsScreenInput2 : public GUIEngine::Screen,
|
|||||||
const core::stringw& text);
|
const core::stringw& text);
|
||||||
|
|
||||||
public:
|
public:
|
||||||
friend class GUIEngine::ScreenSingleton<OptionsScreenInput2>;
|
friend class GUIEngine::ScreenSingleton<OptionsScreenDevice>;
|
||||||
|
|
||||||
/** Sets the configuration to be used. */
|
/** Sets the configuration to be used. */
|
||||||
void setDevice(DeviceConfig* config) { m_config = config; }
|
void setDevice(DeviceConfig* config) { m_config = config; }
|
@ -28,7 +28,7 @@
|
|||||||
#include "input/gamepad_device.hpp"
|
#include "input/gamepad_device.hpp"
|
||||||
#include "input/input_manager.hpp"
|
#include "input/input_manager.hpp"
|
||||||
#include "io/file_manager.hpp"
|
#include "io/file_manager.hpp"
|
||||||
#include "states_screens/options_screen_input2.hpp"
|
#include "states_screens/options_screen_device.hpp"
|
||||||
#include "states_screens/options_screen_audio.hpp"
|
#include "states_screens/options_screen_audio.hpp"
|
||||||
#include "states_screens/options_screen_video.hpp"
|
#include "states_screens/options_screen_video.hpp"
|
||||||
#include "states_screens/options_screen_ui.hpp"
|
#include "states_screens/options_screen_ui.hpp"
|
||||||
@ -225,8 +225,8 @@ void OptionsScreenInput::eventCallback(Widget* widget, const std::string& name,
|
|||||||
read = sscanf( selection.c_str(), "gamepad%i", &i );
|
read = sscanf( selection.c_str(), "gamepad%i", &i );
|
||||||
if (read == 1 && i != -1)
|
if (read == 1 && i != -1)
|
||||||
{
|
{
|
||||||
OptionsScreenInput2::getInstance()->setDevice( input_manager->getDeviceManager()->getGamepadConfig(i) );
|
OptionsScreenDevice::getInstance()->setDevice( input_manager->getDeviceManager()->getGamepadConfig(i) );
|
||||||
StateManager::get()->replaceTopMostScreen(OptionsScreenInput2::getInstance());
|
StateManager::get()->replaceTopMostScreen(OptionsScreenDevice::getInstance());
|
||||||
//updateInputButtons( input_manager->getDeviceList()->getGamepadConfig(i) );
|
//updateInputButtons( input_manager->getDeviceList()->getGamepadConfig(i) );
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@ -242,8 +242,9 @@ void OptionsScreenInput::eventCallback(Widget* widget, const std::string& name,
|
|||||||
if (read == 1 && i != -1)
|
if (read == 1 && i != -1)
|
||||||
{
|
{
|
||||||
// updateInputButtons( input_manager->getDeviceList()->getKeyboardConfig(i) );
|
// updateInputButtons( input_manager->getDeviceList()->getKeyboardConfig(i) );
|
||||||
OptionsScreenInput2::getInstance()->setDevice( input_manager->getDeviceManager()->getKeyboardConfig(i) );
|
OptionsScreenDevice::getInstance()
|
||||||
StateManager::get()->replaceTopMostScreen(OptionsScreenInput2::getInstance());
|
->setDevice( input_manager->getDeviceManager()->getKeyboardConfig(i) );
|
||||||
|
StateManager::get()->replaceTopMostScreen(OptionsScreenDevice::getInstance());
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user