From 0653ff2a561234990d59ba9050f4873b1ac97c35 Mon Sep 17 00:00:00 2001 From: endolf Date: Sun, 28 Aug 2005 09:23:00 +0000 Subject: More rumbler debug git-svn-id: file:///home/sven/projects/JOGL/git-svn/svn-server-sync/jinput/trunk@114 e343933a-64c8-49c5-92b1-88f2ce3e89e8 --- plugins/DX8/src/native/input.cpp | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) (limited to 'plugins/DX8') diff --git a/plugins/DX8/src/native/input.cpp b/plugins/DX8/src/native/input.cpp index 441b54e..c18b3e8 100644 --- a/plugins/DX8/src/native/input.cpp +++ b/plugins/DX8/src/native/input.cpp @@ -699,14 +699,28 @@ BOOL CALLBACK EnumObjectsCallback(LPCDIDEVICEOBJECTINSTANCE lpddoi, DWORD rgdwAxes; LONG rglDirection = 0; if(lpddoi->guidType == GUID_XAxis) { - //printf("effect is in the x axis\n"); + printf("effect is in the x axis\n"); rgdwAxes = DIJOFS_X; } else if(lpddoi->guidType == GUID_YAxis) { - //printf("effect is in the y axis\n"); + printf("effect is in the y axis\n"); rgdwAxes = DIJOFS_Y; } else if(lpddoi->guidType == GUID_ZAxis) { - //printf("effect is in the z axis\n"); + printf("effect is in the z axis\n"); rgdwAxes = DIJOFS_Z; + } else if (lpddoi->guidType == GUID_RxAxis) { + printf("effect is in the rx axis\n"); + } else if (lpddoi->guidType == GUID_RyAxis) { + printf("effect is in the ry axis\n"); + } else if (lpddoi->guidType == GUID_RzAxis) { + printf("effect is in the rx axis\n"); + } else if (lpddoi->guidType == GUID_Slider) { + printf("effect is in the slider axis\n"); + } else if (lpddoi->guidType == GUID_Button) { + printf("effect is in the button axis\n"); + } else if (lpddoi->guidType == GUID_POV) { + printf("effect is in the pov axis\n"); + } else { + printf("effect is in an unknown axis\n"); } DICONSTANTFORCE cf = { DI_FFNOMINALMAX }; -- cgit v1.2.3