attempt at fixing crash when navigating menus with gamepad
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3351 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
@@ -255,6 +255,8 @@ void GamePadDevice::loadDefaults()
|
||||
// -----------------------------------------------------------------------------
|
||||
void GamePadDevice::resetAxisDirection(const int axis, Input::AxisDirection direction, const int player)
|
||||
{
|
||||
if(!StateManager::isGameState()) return; // ignore this while in menus
|
||||
|
||||
for(int n=0; n<PA_COUNT; n++)
|
||||
{
|
||||
if(m_bindings[n].id == axis && m_bindings[n].dir == direction)
|
||||
|
||||
Reference in New Issue
Block a user