diff options
author | Max-001 <maxsmits21@kpnmail.nl> | 2025-01-06 12:06:25 +0100 |
---|---|---|
committer | Max-001 <maxsmits21@kpnmail.nl> | 2025-01-06 12:06:25 +0100 |
commit | c40514053e39019ce988cc7961c68fbf7aa5dbe3 (patch) | |
tree | 39a33ec1bdc3140572c3c80330efeecc6b0cd0b0 /src/crepe/system/InputSystem.cpp | |
parent | 20ae1e9dc2043ef3c190f77dd5f9de74bcd533de (diff) | |
parent | 79df1f88c41e5e6872b5502dfba776048dbc593e (diff) |
Merge remote-tracking branch 'origin/master' into max/game
Diffstat (limited to 'src/crepe/system/InputSystem.cpp')
-rw-r--r-- | src/crepe/system/InputSystem.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/crepe/system/InputSystem.cpp b/src/crepe/system/InputSystem.cpp index 91c9c64..be7eda6 100644 --- a/src/crepe/system/InputSystem.cpp +++ b/src/crepe/system/InputSystem.cpp @@ -216,7 +216,7 @@ bool InputSystem::is_mouse_inside_button( if (!button.data.world_space) { actual_pos += cam_transform.position; } - vec2 half_dimensions = button.dimensions / 2; + vec2 half_dimensions = button.dimensions * transform.scale / 2; return mouse_pos.x >= actual_pos.x - half_dimensions.x && mouse_pos.x <= actual_pos.x + half_dimensions.x |