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

@ -64,8 +64,8 @@ Joystick::Joystick(IOHIDDeviceRef device, std::string name, int index)
AddInput(new Hat(e, m_device, Hat::down));
AddInput(new Hat(e, m_device, Hat::left));
} else {
AddInput(new Axis(e, m_device, Axis::negative));
AddInput(new Axis(e, m_device, Axis::positive));
AddAnalogInputs(new Axis(e, m_device, Axis::negative),
new Axis(e, m_device, Axis::positive));
}
}
CFRelease(axes);