Mercurial > sdl-ios-xcode
comparison src/haptic/win32/SDL_syshaptic.c @ 2786:6bacfecbf27e
indent
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Tue, 25 Nov 2008 02:21:53 +0000 |
parents | 0c544c2eff77 |
children | 8f4ed5ec2b06 |
comparison
equal
deleted
inserted
replaced
2785:fa1095d42a5b | 2786:6bacfecbf27e |
---|---|
103 * Like SDL_SetError but for DX error codes. | 103 * Like SDL_SetError but for DX error codes. |
104 */ | 104 */ |
105 static void | 105 static void |
106 DI_SetError(const char *str, HRESULT err) | 106 DI_SetError(const char *str, HRESULT err) |
107 { | 107 { |
108 /* | 108 /* |
109 SDL_SetError("Haptic: %s - %s: %s", str, | 109 SDL_SetError("Haptic: %s - %s: %s", str, |
110 DXGetErrorString8A(err), DXGetErrorDescription8A(err)); | 110 DXGetErrorString8A(err), DXGetErrorDescription8A(err)); |
111 */ | 111 */ |
112 SDL_SetError("Haptic error %s", str); | 112 SDL_SetError("Haptic error %s", str); |
113 } | 113 } |
114 | 114 |
115 | 115 |
116 /* | 116 /* |
117 * Checks to see if two GUID are the same. | 117 * Checks to see if two GUID are the same. |
152 DI_SetError("Coinitialize", ret); | 152 DI_SetError("Coinitialize", ret); |
153 return -1; | 153 return -1; |
154 } | 154 } |
155 | 155 |
156 ret = CoCreateInstance(&CLSID_DirectInput, NULL, CLSCTX_INPROC_SERVER, | 156 ret = CoCreateInstance(&CLSID_DirectInput, NULL, CLSCTX_INPROC_SERVER, |
157 &IID_IDirectInput, (LPVOID)&dinput); | 157 &IID_IDirectInput, (LPVOID) & dinput); |
158 if (FAILED(ret)) { | 158 if (FAILED(ret)) { |
159 DI_SetError("CoCreateInstance", ret); | 159 DI_SetError("CoCreateInstance", ret); |
160 return -1; | 160 return -1; |
161 } | 161 } |
162 | 162 |