summaryrefslogtreecommitdiff
path: root/Source/Core/InputCommon/Src/ControllerInterface/DInput/DInputJoystick.cpp
diff options
context:
space:
mode:
authorJordan Woyak <jordan.woyak@gmail.com>2013-01-17 15:41:18 -0600
committerJordan Woyak <jordan.woyak@gmail.com>2013-01-17 15:41:18 -0600
commitf97d2a93c4167a4b6aec0ae69536395380d427e3 (patch)
treebfea2306c8379113f675ab920357f459db934ac2 /Source/Core/InputCommon/Src/ControllerInterface/DInput/DInputJoystick.cpp
parent38b01d176a266ac67e2473f16c645760a991fb66 (diff)
Add "full analog surface" support in DInput,OSX,SDL backends. (should not be needed for XInput)
Diffstat (limited to 'Source/Core/InputCommon/Src/ControllerInterface/DInput/DInputJoystick.cpp')
-rw-r--r--Source/Core/InputCommon/Src/ControllerInterface/DInput/DInputJoystick.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/Core/InputCommon/Src/ControllerInterface/DInput/DInputJoystick.cpp b/Source/Core/InputCommon/Src/ControllerInterface/DInput/DInputJoystick.cpp
index af6ee7e77c..9bc5364e76 100644
--- a/Source/Core/InputCommon/Src/ControllerInterface/DInput/DInputJoystick.cpp
+++ b/Source/Core/InputCommon/Src/ControllerInterface/DInput/DInputJoystick.cpp
@@ -267,8 +267,8 @@ Joystick::Joystick( /*const LPCDIDEVICEINSTANCE lpddi, */const LPDIRECTINPUTDEVI
const LONG& ax = (&m_state_in.lX)[offset];
// each axis gets a negative and a positive input instance associated with it
- AddInput(new Axis(offset, ax, base, range.lMin-base));
- AddInput(new Axis(offset, ax, base, range.lMax-base));
+ AddAnalogInputs(new Axis(offset, ax, base, range.lMin-base),
+ new Axis(offset, ax, base, range.lMax-base));
}
}