27 #ifndef _Win32AppHelper_h_ 28 #define _Win32AppHelper_h_ 30 #if defined( __WIN32__ ) || defined( _WIN32 ) 31 # define WIN32_LEAN_AND_MEAN 42 # pragma comment(lib, "dinput8.lib") 43 # pragma comment(lib, "dxguid.lib") 61 LPDIRECTINPUT8 directInput;
62 LPDIRECTINPUTDEVICE8 keyboardDevice;
65 static HWND createApplicationWindow(
int width,
int height);
66 static void mouseEnters(
void);
67 static void mouseLeaves(
void);
71 static bool doWin32Events(
bool& idle);
72 static LRESULT CALLBACK wndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam);
80 static const TCHAR APPLICATION_NAME[];
83 static const TCHAR REGISTER_CLASS_ERROR[];
84 static const TCHAR CREATE_WINDOW_ERROR[];
87 static const TCHAR CREATE_D3D_ERROR[];
88 static const TCHAR CREATE_DEVICE_ERROR[];
91 static bool s_mouseInWindow;
96 #endif // end of guard _Win32AppHelper_h_ This is a base class that is intended to be used for all sample applications. Here we take care of co...
Definition: SamplesFrameworkBase.h:43
All static utility class containing helper / common functions used for the Win32 apps.
Definition: Win32AppHelper.h:53