From d1fd147b09f70581883b07129f60f5ef0f2943ed Mon Sep 17 00:00:00 2001 From: Orcolom Date: Wed, 19 Feb 2025 22:01:25 +0100 Subject: [PATCH] added getpointerstate to readme --- README.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/README.md b/README.md index 202d0c1..57fc648 100644 --- a/README.md +++ b/README.md @@ -169,6 +169,7 @@ For help starting out or to discuss clay, considering joining [the discord serve - [Clay_SetCurrentContext](#clay_setcurrentcontext) - [Clay_SetLayoutDimensions](#clay_setlayoutdimensions) - [Clay_SetPointerState](#clay_setpointerstate) + - [Clay_GetPointerState](#clay_getpointerstate) - [Clay_UpdateScrollContainers](#clay_updatescrollcontainers) - [Clay_BeginLayout](#clay_beginlayout) - [Clay_EndLayout](#clay_endlayout) @@ -645,6 +646,14 @@ Sets the internal pointer position and state (i.e. current mouse / touch positio --- +### Clay_GetPointerState + +`Clay_PointerData Clay_GetPointerState()` + +Get the internal pointer position and state (i.e. current mouse / touch position). returns clay internal click start and stop state. + +--- + ### Clay_UpdateScrollContainers `void Clay_UpdateScrollContainers(bool enableDragScrolling, Clay_Vector2 scrollDelta, float deltaTime)`