diff options
author | elias <[email protected]> | 2006-07-17 11:32:38 +0000 |
---|---|---|
committer | elias <[email protected]> | 2006-07-17 11:32:38 +0000 |
commit | ce69f0a63628fe2adf5765832b116279990205a1 (patch) | |
tree | 8056f8a36492af6ac8c6bd44b585348dd7d22427 /plugins | |
parent | a085a9ba87b06f7af7b5de345ce99eaddfc71e37 (diff) |
Windows: Fix more mingw compile warnings
git-svn-id: file:///home/sven/projects/JOGL/git-svn/svn-server-sync/jinput/trunk@157 e343933a-64c8-49c5-92b1-88f2ce3e89e8
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/windows/src/native/dx8/net_java_games_input_IDirectInput.c | 2 | ||||
-rw-r--r-- | plugins/windows/src/native/dx8/net_java_games_input_IDirectInputDevice.c | 32 |
2 files changed, 1 insertions, 33 deletions
diff --git a/plugins/windows/src/native/dx8/net_java_games_input_IDirectInput.c b/plugins/windows/src/native/dx8/net_java_games_input_IDirectInput.c index ae7b0ca..2a8df2b 100644 --- a/plugins/windows/src/native/dx8/net_java_games_input_IDirectInput.c +++ b/plugins/windows/src/native/dx8/net_java_games_input_IDirectInput.c @@ -22,7 +22,7 @@ typedef struct { JNIEXPORT jlong JNICALL Java_net_java_games_input_IDirectInput_createIDirectInput(JNIEnv *env, jclass unused) { LPDIRECTINPUT8 lpDirectInput; HRESULT res = DirectInput8Create(GetModuleHandle(NULL), DIRECTINPUT_VERSION, - &IID_IDirectInput8,(VOID **)&lpDirectInput, NULL); + &IID_IDirectInput8, (void *)&lpDirectInput, NULL); if (FAILED(res)) { throwIOException(env, "Failed to create IDirectInput8 (%d)\n", res); return 0; diff --git a/plugins/windows/src/native/dx8/net_java_games_input_IDirectInputDevice.c b/plugins/windows/src/native/dx8/net_java_games_input_IDirectInputDevice.c index d4561b3..11e7141 100644 --- a/plugins/windows/src/native/dx8/net_java_games_input_IDirectInputDevice.c +++ b/plugins/windows/src/native/dx8/net_java_games_input_IDirectInputDevice.c @@ -32,34 +32,6 @@ JNIEXPORT jint JNICALL Java_net_java_games_input_IDirectInputDevice_nSetBufferSi return res; } -static const GUID *mapGUIDId(const jint guid_id) { - switch (guid_id) { - case net_java_games_input_IDirectInputDevice_GUID_XAxis: - return &GUID_XAxis; - case net_java_games_input_IDirectInputDevice_GUID_YAxis: - return &GUID_YAxis; - case net_java_games_input_IDirectInputDevice_GUID_ZAxis: - return &GUID_ZAxis; - case net_java_games_input_IDirectInputDevice_GUID_RxAxis: - return &GUID_RxAxis; - case net_java_games_input_IDirectInputDevice_GUID_RyAxis: - return &GUID_RyAxis; - case net_java_games_input_IDirectInputDevice_GUID_RzAxis: - return &GUID_RzAxis; - case net_java_games_input_IDirectInputDevice_GUID_Slider: - return &GUID_Slider; - case net_java_games_input_IDirectInputDevice_GUID_Button: - return &GUID_Button; - case net_java_games_input_IDirectInputDevice_GUID_Key: - return &GUID_Key; - case net_java_games_input_IDirectInputDevice_GUID_POV: - return &GUID_POV; - case net_java_games_input_IDirectInputDevice_GUID_Unknown: - default: - return NULL; - } -} - static jint mapGUIDType(const GUID *guid) { if (IsEqualGUID(guid, &GUID_XAxis)) { return net_java_games_input_IDirectInputDevice_GUID_XAxis; @@ -113,9 +85,6 @@ static BOOL CALLBACK enumEffectsCallback(LPCDIEFFECTINFO pdei, LPVOID pvRef) { enum_context_t *enum_context = (enum_context_t *)pvRef; jmethodID add_method; jstring name; - DWORD instance; - DWORD type; - jint guid_type; jbyteArray guid; JNIEnv *env = enum_context->env; jobject device_obj = enum_context->device_obj; @@ -228,7 +197,6 @@ JNIEXPORT jint JNICALL Java_net_java_games_input_IDirectInputDevice_nSetDataForm jmethodID getInstance_method; jobject object; jint type; - jint guid_id; jint object_flags; jint instance; jobject guid_array; |