Assign fire key to select in soccer setup screen.

This is done in the same way as in kart selection.
Btw. nixt, update rain in final camera is necessary ;-p

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@14140 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
deveee 2013-09-23 14:09:25 +00:00
parent 1b2c340875
commit d5bddb20fa

View File

@ -150,6 +150,11 @@ void SoccerSetupScreen::init()
// We need players to be able to choose their teams
//~ input_manager->getDeviceList()->setAssignMode(ASSIGN);
input_manager->setMasterPlayerOnly(false);
// This flag will cause that a 'fire' event will be mapped to 'select' (if
// 'fire' is not assigned to a GUI event). This is done to support the old
// way of player joining by pressing 'fire' instead of 'select'.
input_manager->getDeviceList()->mapFireToSelect(true);
}
// -----------------------------------------------------------------------------
@ -157,6 +162,9 @@ void SoccerSetupScreen::tearDown()
{
Widget* central_div = getWidget<Widget>("central_div");
// Reset the 'map fire to select' option of the device manager
input_manager->getDeviceList()->mapFireToSelect(false);
// Remove all ModelViewWidgets we created manually
PtrVector<Widget>& children = central_div->getChildren();
for(int i = children.size()-1 ; i >= 0 ; i--)