Add "full analog surface" support in DInput,OSX,SDL backends. (should not be needed for XInput)

This commit is contained in:
Jordan Woyak
2013-01-17 15:41:18 -06:00
parent 38b01d176a
commit f97d2a93c4
3 changed files with 6 additions and 6 deletions

View File

@ -86,8 +86,8 @@ Joystick::Joystick(SDL_Joystick* const joystick, const int sdl_index, const unsi
for (u8 i = 0; i != SDL_JoystickNumAxes(m_joystick); ++i)
{
// each axis gets a negative and a positive input instance associated with it
AddInput(new Axis(i, m_joystick, -32768));
AddInput(new Axis(i, m_joystick, 32767));
AddAnalogInputs(new Axis(i, m_joystick, -32768),
new Axis(i, m_joystick, 32767));
}
#ifdef USE_SDL_HAPTIC