Mercurial > sdl-ios-xcode
comparison src/video/wincommon/SDL_sysevents.c @ 1330:450721ad5436
It's now possible to build SDL without any C runtime at all on Windows,
using Visual C++ 2005
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Mon, 06 Feb 2006 08:28:51 +0000 |
parents | c9b51268668f |
children | 3692456e7b0f |
comparison
equal
deleted
inserted
replaced
1329:bc67bbf87818 | 1330:450721ad5436 |
---|---|
18 | 18 |
19 Sam Lantinga | 19 Sam Lantinga |
20 slouken@libsdl.org | 20 slouken@libsdl.org |
21 */ | 21 */ |
22 | 22 |
23 #include <stdlib.h> | 23 #include "SDL_windows.h" |
24 #include <stdio.h> | 24 |
25 #include <windows.h> | |
26 | |
27 #include "SDL_getenv.h" | |
28 #include "SDL_events.h" | 25 #include "SDL_events.h" |
29 #include "SDL_video.h" | 26 #include "SDL_video.h" |
30 #include "SDL_error.h" | 27 #include "SDL_error.h" |
31 #include "SDL_syswm.h" | 28 #include "SDL_syswm.h" |
29 #include "SDL_stdlib.h" | |
30 #include "SDL_string.h" | |
31 #include "SDL_getenv.h" | |
32 #include "SDL_sysevents.h" | 32 #include "SDL_sysevents.h" |
33 #include "SDL_events_c.h" | 33 #include "SDL_events_c.h" |
34 #include "SDL_sysvideo.h" | 34 #include "SDL_sysvideo.h" |
35 #include "SDL_lowvideo.h" | 35 #include "SDL_lowvideo.h" |
36 #include "SDL_syswm_c.h" | 36 #include "SDL_syswm_c.h" |
796 char buff[8]; | 796 char buff[8]; |
797 int lcid = MAKELCID(LOWORD(GetKeyboardLayout(0)), SORT_DEFAULT); | 797 int lcid = MAKELCID(LOWORD(GetKeyboardLayout(0)), SORT_DEFAULT); |
798 int cp = GetACP(); | 798 int cp = GetACP(); |
799 | 799 |
800 if (GetLocaleInfo(lcid, LOCALE_IDEFAULTANSICODEPAGE, buff, sizeof(buff))) { | 800 if (GetLocaleInfo(lcid, LOCALE_IDEFAULTANSICODEPAGE, buff, sizeof(buff))) { |
801 cp = atoi(buff); | 801 cp = strtol(buff, NULL, 0); |
802 } | 802 } |
803 return cp; | 803 return cp; |
804 } | 804 } |
805 | 805 |
806 static int WINAPI ToUnicode9xME(UINT vkey, UINT scancode, PBYTE keystate, LPWSTR wchars, int wsize, UINT flags) | 806 static int WINAPI ToUnicode9xME(UINT vkey, UINT scancode, PBYTE keystate, LPWSTR wchars, int wsize, UINT flags) |