fix: cursor state is now initialized on startup
This commit is contained in:
parent
4c9cafdff5
commit
98fd90ff4d
|
@ -114,6 +114,9 @@ void InitClay() {
|
|||
Clay_Initialize(clayPrimaryArena, (Clay_Dimensions) { screenWidth, screenHeight }, (Clay_ErrorHandler) { HandleClayErrors });
|
||||
Clay_SetMeasureTextFunction(MeasureText, fonts);
|
||||
Clay_SetLayoutDimensions((Clay_Dimensions) { screenWidth, screenHeight });
|
||||
float x, y;
|
||||
SDL_GetMouseState(&x, &y);
|
||||
Clay_SetPointerState((Clay_Vector2) { x, y }, false);
|
||||
}
|
||||
|
||||
extern Clay_RenderCommandArray RenderApplication();
|
||||
|
|
Loading…
Reference in a new issue