Cleaned Up AppPlatform & Input Classes

* Cleaned up AppPlatform classes
* Documented & improved Keyboard & Mouse classes
* Improved input-handling code in the Windows & SDL main.cpp files
This commit is contained in:
Brent Da Mage
2023-08-19 06:26:50 -05:00
committed by iProgramInCpp
parent e731fefbea
commit d5ee7bfc08
21 changed files with 422 additions and 375 deletions

View File

@@ -10,7 +10,6 @@
#include <unordered_map>
HWND GetHWND();
extern LPCTSTR g_GameTitle;
// Don't undefine. It will make the game MUCH slower.
#define USE_HARDWARE_GL_BUFFERS
@@ -49,7 +48,7 @@ void xglInit()
#ifdef USE_HARDWARE_GL_BUFFERS
if (!xglInitted())
MessageBox(GetHWND(), TEXT("Error initializing GL extensions. Update your graphics drivers!"), g_GameTitle, MB_OK);
MessageBox(GetHWND(), TEXT("Error initializing GL extensions. Update your graphics drivers!"), "Error", MB_OK);
#endif
}