comparison src/joystick/windows/SDL_dxjoystick_c.h @ 5092:327f181542f1

Include windows.h in a single point in the source, so we can be consistent about the definition of UNICODE and have core utility functions for Windows that all modules can share. I think this also fixes the bug relating to non-latin characters in filenames, since UNICODE wasn't defined in SDL_rwops.c
author Sam Lantinga <slouken@libsdl.org>
date Mon, 24 Jan 2011 21:20:30 -0800
parents e8916fe9cfc8
children b530ef003506
comparison
equal deleted inserted replaced
5091:79bd1e289005 5092:327f181542f1
31 * 31 *
32 * We don't bother to use event notification here. It doesn't seem to work 32 * We don't bother to use event notification here. It doesn't seem to work
33 * with polled devices, and it's fine to call IDirectInputDevice2_GetDeviceData and 33 * with polled devices, and it's fine to call IDirectInputDevice2_GetDeviceData and
34 * let it return 0 events. */ 34 * let it return 0 events. */
35 35
36 #define WIN32_LEAN_AND_MEAN 36 #include "../../core/windows/SDL_windows.h"
37 #include <windows.h>
38 37
39 #define DIRECTINPUT_VERSION 0x0700 /* Need version 7 for force feedback. */ 38 #define DIRECTINPUT_VERSION 0x0700 /* Need version 7 for force feedback. */
40 #include <dinput.h> 39 #include <dinput.h>
41 40
42 41