From 67bcd5f43e75121fc68e5cc046d7d78c2cae7ff2 Mon Sep 17 00:00:00 2001 From: endolf Date: Thu, 1 Sep 2005 20:34:01 +0000 Subject: [PATCH] Trying to handle more than 2 force feedback axis. Untested. --- plugins/DX8/src/native/input.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/plugins/DX8/src/native/input.cpp b/plugins/DX8/src/native/input.cpp index c18b3e8..31f2e70 100644 --- a/plugins/DX8/src/native/input.cpp +++ b/plugins/DX8/src/native/input.cpp @@ -709,16 +709,22 @@ BOOL CALLBACK EnumObjectsCallback(LPCDIDEVICEOBJECTINSTANCE lpddoi, rgdwAxes = DIJOFS_Z; } else if (lpddoi->guidType == GUID_RxAxis) { printf("effect is in the rx axis\n"); + rgdwAxes = DIJOFS_RX; } else if (lpddoi->guidType == GUID_RyAxis) { printf("effect is in the ry axis\n"); + rgdwAxes = DIJOFS_RY; } else if (lpddoi->guidType == GUID_RzAxis) { - printf("effect is in the rx axis\n"); + printf("effect is in the rz axis\n"); + rgdwAxes = DIJOFS_RZ; } else if (lpddoi->guidType == GUID_Slider) { printf("effect is in the slider axis\n"); + rgdwAxes = DIJOFS_SLIDER(0); } else if (lpddoi->guidType == GUID_Button) { printf("effect is in the button axis\n"); + rgdwAxes = DIJOFS_BUTTON0; } else if (lpddoi->guidType == GUID_POV) { printf("effect is in the pov axis\n"); + rgdwAxes = DIJOFS_POV(0); } else { printf("effect is in an unknown axis\n"); }