Hinweis
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, sich anzumelden oder das Verzeichnis zu wechseln.
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, das Verzeichnis zu wechseln.
The Microsoft Game Development Kit (GDK) uses the Win32 programming style, including windows and messages. Although much of this is identical to what you might encounter on Windows PC, this topic describes what's supported on console and the differences from Windows PC.
Main window creation
Every game must have a WinMain as its entry point function. Within
WinMain, the game should do the following.
- Register a window class.
- Specify a window procedure.
- Create a window.
- Pump the message loop.
On console, the window just acts a target for messages.
Windows messages supported on console
On console, there's support for basic input from the keyboard and mouse as well as window lifetime. The following system messages are supported.
WM_ACTIVATEWM_ACTIVATEAPPWM_CHARWM_CREATEWM_DESTROYWM_DPICHANGEDWM_KEYDOWNWM_KEYUPWM_KILLFOCUSWM_LBUTTONDOWNWM_LBUTTONUPWM_MBUTTONDOWNWM_MBUTTONUPWM_MOUSEMOVEWM_MOUSEWHEELWM_QUITWM_RBUTTONDOWNWM_RBUTTONUPWM_SETFOCUSWM_SHOWWINDOWWM_SIZEWM_SYSKEYDOWNWM_SYSKEYUPWM_THEMECHANGEDWM_TIMERWM_USERWM_XBUTTONDOWNWM_XBUTTONUP
WinUser functions supported on console
Console supports only a subset of what might be expected from winuser.h. Console supports only the following windows functions.
AdjustWindowRectAdjustWindowRectExCallWindowProcCreateWindowExDefWindowProcDestroyCursorDestroyWindowDispatchMessageGetClientRectGetCursorInfoGetCursorPosGetMessageGetWindowLongGetWindowLongPtrKillTimerLoadCursorMoveWindowPeekMessagePostMessagePostQuitMessagePostThreadMessageRegisterClassRegisterClassExSendMessageSetCursorSetTimerSetWindowLongSetWindowLongPtrSetWindowPosShowCursorShowWindowTranslateMessageUnregisterClass