diff options
author | endolf <[email protected]> | 2005-09-01 20:34:01 +0000 |
---|---|---|
committer | endolf <[email protected]> | 2005-09-01 20:34:01 +0000 |
commit | 896c5f7e9e7825d4e60f7df2ce4d7c83e5172903 (patch) | |
tree | dbbf6abd1c03747547dc2dad12f5fd1c5c235cd7 | |
parent | 47e2f395874e778377e88f724c935c8979e64665 (diff) |
Trying to handle more than 2 force feedback axis. Untested.
git-svn-id: file:///home/sven/projects/JOGL/git-svn/svn-server-sync/jinput/trunk@124 e343933a-64c8-49c5-92b1-88f2ce3e89e8
-rw-r--r-- | plugins/DX8/src/native/input.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
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"); } |