Cleaned out outdated code and no more relvant TODO
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5745 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
@@ -373,78 +373,6 @@ void OptionsScreenInput2::eventCallback(Widget* widget, const std::string& name,
|
||||
}
|
||||
}
|
||||
}
|
||||
//TODO!
|
||||
/*
|
||||
else if(name.find("binding_") != std::string::npos)
|
||||
{
|
||||
binding_to_set_button = name;
|
||||
|
||||
if(name == "binding_up")
|
||||
{
|
||||
binding_to_set = PA_ACCEL;
|
||||
}
|
||||
else if(name == "binding_down")
|
||||
{
|
||||
binding_to_set = PA_BRAKE;
|
||||
}
|
||||
else if(name == "binding_left")
|
||||
{
|
||||
binding_to_set = PA_STEER_LEFT;
|
||||
}
|
||||
else if(name == "binding_right")
|
||||
{
|
||||
binding_to_set = PA_STEER_RIGHT;
|
||||
}
|
||||
else if(name == "binding_fire")
|
||||
{
|
||||
binding_to_set = PA_FIRE;
|
||||
}
|
||||
else if(name == "binding_nitro")
|
||||
{
|
||||
binding_to_set = PA_NITRO;
|
||||
}
|
||||
else if(name == "binding_drift")
|
||||
{
|
||||
binding_to_set = PA_DRIFT;
|
||||
}
|
||||
else if(name == "binding_rescue")
|
||||
{
|
||||
binding_to_set = PA_RESCUE;
|
||||
}
|
||||
else if(name == "binding_look_back")
|
||||
{
|
||||
binding_to_set = PA_LOOK_BACK;
|
||||
}
|
||||
else
|
||||
{
|
||||
std::cerr << "Unknown binding name : " << name.c_str() << std::endl;
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
if (UserConfigParams::m_verbosity>=5)
|
||||
{
|
||||
std::cout << "\n% Entering sensing mode for "
|
||||
<< m_config->getName().c_str()
|
||||
<< std::endl;
|
||||
}
|
||||
|
||||
new PressAKeyDialog(0.4f, 0.4f);
|
||||
|
||||
if (m_config->getType() == DEVICE_CONFIG_TYPE_KEYBOARD)
|
||||
{
|
||||
input_manager->setMode(InputManager::INPUT_SENSE_KEYBOARD);
|
||||
}
|
||||
else if (m_config->getType() == DEVICE_CONFIG_TYPE_GAMEPAD)
|
||||
{
|
||||
input_manager->setMode(InputManager::INPUT_SENSE_GAMEPAD);
|
||||
}
|
||||
else
|
||||
{
|
||||
std::cerr << "unknown selection device in options : " << m_config->getName().c_str() << std::endl;
|
||||
}
|
||||
}*/
|
||||
|
||||
} // eventCallback
|
||||
|
||||
// -----------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user