From 85233ce6e3293eefbe9d51a98cd22e1f8ba0a34a Mon Sep 17 00:00:00 2001 From: 8dcc <8dcc.git@gmail.com> Date: Thu, 27 Jul 2023 14:17:57 +0200 Subject: [PATCH] Add game_t struct to sdk.h Thanks to @oixKKK for his time and for helping me --- src/include/sdk.h | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/src/include/sdk.h b/src/include/sdk.h index 8680be3..66d9d47 100644 --- a/src/include/sdk.h +++ b/src/include/sdk.h @@ -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_ */