From 61c932f2605aac5a8fef4264087e9ea8f86c6760 Mon Sep 17 00:00:00 2001 From: jussi Date: Tue, 2 Jul 2024 20:49:25 +0300 Subject: GetMouseOffset and GetMouseScale. --- include/core.h | 2 ++ include/state.h | 2 ++ 2 files changed, 4 insertions(+) (limited to 'include') diff --git a/include/core.h b/include/core.h index d72fdb9..14b2630 100644 --- a/include/core.h +++ b/include/core.h @@ -193,6 +193,8 @@ int lcoreGetMouseDelta( lua_State* L ); int lcoreSetMousePosition( lua_State* L ); int lcoreSetMouseOffset( lua_State* L ); int lcoreSetMouseScale( lua_State* L ); +int lcoreGetMouseOffset( lua_State* L ); +int lcoreGetMouseScale( lua_State* L ); int lcoreGetMouseWheelMove( lua_State* L ); int lcoreGetMouseWheelMoveV( lua_State* L ); int lcoreSetMouseCursor( lua_State* L ); diff --git a/include/state.h b/include/state.h index 92ed132..8168535 100644 --- a/include/state.h +++ b/include/state.h @@ -10,6 +10,8 @@ typedef struct { bool run; bool gcUnload; int lineSpacing; /* We need to store copy here since raylib has it in static. */ + Vector2 mouseOffset; + Vector2 mouseScale; lua_State* luaState; Vector2 resolution; int logLevelInvalid; -- cgit v1.2.3