Add game_t struct to sdk.h

Thanks to @oixKKK for his time and for helping me
This commit is contained in:
8dcc 2023-07-27 14:17:57 +02:00
parent 7147ccc5fa
commit 85233ce6e3
1 changed files with 27 additions and 0 deletions

View File

@ -292,4 +292,31 @@ typedef struct StudioModelRenderer_s {
*/
} StudioModelRenderer_t;
/* Credits: @oixKKK */
typedef struct {
void* vtbl;
bool m_bActiveApp;
void* m_hSDLWindow; /* pmainwindow */
void* m_hSDLGLContext;
bool m_bExpectSyntheticMouseMotion;
int m_nMouseTargetX;
int m_nMouseTargetY;
int m_nWarpDelta;
bool m_bCursorVisible;
/* Window pos */
int m_x;
int m_y;
/* Window size */
int m_width;
int m_height;
bool m_bMultiplayer;
} game_t;
#endif /* SDK_H_ */