Ignore:
Timestamp:
May 9, 2012, 6:40:38 PM (10 years ago)
Author:
sam
Message:

input: allow to remap gamepad axes in the generic input layer.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/platform/sdl/sdlinput.cpp

    r1346 r1355  
    6868        stick->SetAxisCount(SDL_JoystickNumAxes(sdlstick));
    6969        stick->SetButtonCount(SDL_JoystickNumButtons(sdlstick));
     70
     71        /* It's possible to remap axes */
     72        if (strstr(name, "XBOX 360 For Windows"))
     73        {
     74            //stick->RemapAxis(4, 2);
     75            //stick->RemapAxis(2, 4);
     76        }
     77
    7078        m_data->m_joysticks.Push(sdlstick, stick);
    7179    }
Note: See TracChangeset for help on using the changeset viewer.