Sorry for the dumb question, but I’m trying to compile jinput from cvs, in case I need to add some things for my own app.
I 'm getting errors with a couple of the switch-case statements in the directx plugin input.cpp file, and wasn’t sure if I needed to change something with my g++ or what. I installed mingw 5.0.2 on windows xp, and I’m using the latest directx sdk (feb 2006).
Also I didn’t know if you would want to include jutils.jar in the cvs repository or not since jinput depends on it.
Great work on jinput though!
compile:
[exec] src/native/input.cpp: In function BOOL EnumObjectsCallback(const DIDEVICEOBJECTINSTANCE*, void*)': [exec] src/native/input.cpp:842: error: a casts to a type other than an integral or enumeration type cannot appear in a constant-expression [exec] src/native/input.cpp:842: error: '->' cannot appear in a constant-expression [exec] src/native/input.cpp:842: error:
&’ cannot appear in a constant-expression
[exec] src/native/input.cpp:846: error: a casts to a type other than an integral or enumeration type cannot appear in a constant-expression
[exec] src/native/input.cpp:846: error: ‘->’ cannot appear in a constant-expression
[exec] src/native/input.cpp:846: error: &' cannot appear in a constant-expression [exec] src/native/input.cpp:850: error: a casts to a type other than an integral or enumeration type cannot appear in a constant-expression ......(snip)......... [exec] src/native/input.cpp: In function
jboolean Java_net_java_games_input_DirectInputMouse_pollNative(JNIEnv*, _jobject*, jlong, _jbyteArray*)’:
[exec] src/native/input.cpp:1350: error: a casts to a type other than an integral or enumeration type cannot appear in a constant-expression
[exec] src/native/input.cpp:1350: error: ‘->’ cannot appear in a constant-expression
[exec] src/native/input.cpp:1350: error: &' cannot appear in a constant-expression [exec] src/native/input.cpp:1355: error: a casts to a type other than an integral or enumeration type cannot appear in a constant-expression [exec] src/native/input.cpp:1355: error: '->' cannot appear in a constant-expression [exec] src/native/input.cpp:1355: error:
&’ cannot appear in a constant-expression
[exec] src/native/input.cpp:1360: error: a casts to a type other than an integral or enumeration type cannot appear in a constant-expression