summaryrefslogtreecommitdiffhomepage
path: root/examples/text/text_rectangle_bounds.c
diff options
context:
space:
mode:
authorLambert Wang <[email protected]>2021-05-08 09:26:24 -0700
committerGitHub <[email protected]>2021-05-08 18:26:24 +0200
commit2545f62565fd246d1c59bf9a6bcf4942f4ad12ad (patch)
tree817bd3580c3b7c4037a545d552d90f699be879b3 /examples/text/text_rectangle_bounds.c
parent2565c011580fda074e0f3dceacd5e6a1476b3284 (diff)
downloadraylib-2545f62565fd246d1c59bf9a6bcf4942f4ad12ad.tar.gz
raylib-2545f62565fd246d1c59bf9a6bcf4942f4ad12ad.zip
Added support for additional mouse buttons (#1753)
* Added support for additional mouse buttons * Renamed mouse button enum Co-authored-by: Lambert Wang <[email protected]>
Diffstat (limited to 'examples/text/text_rectangle_bounds.c')
-rw-r--r--examples/text/text_rectangle_bounds.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/text/text_rectangle_bounds.c b/examples/text/text_rectangle_bounds.c
index cb246955..9754cd45 100644
--- a/examples/text/text_rectangle_bounds.c
+++ b/examples/text/text_rectangle_bounds.c
@@ -61,7 +61,7 @@ tempor incididunt ut labore et dolore magna aliqua. Nec ullamcorper sit amet ris
// Container resizing logic
if (resizing)
{
- if (IsMouseButtonReleased(MOUSE_LEFT_BUTTON)) resizing = false;
+ if (IsMouseButtonReleased(MOUSE_BUTTON_LEFT)) resizing = false;
float width = container.width + (mouse.x - lastMouse.x);
container.width = (width > minWidth)? ((width < maxWidth)? width : maxWidth) : minWidth;
@@ -72,7 +72,7 @@ tempor incididunt ut labore et dolore magna aliqua. Nec ullamcorper sit amet ris
else
{
// Check if we're resizing
- if (IsMouseButtonDown(MOUSE_LEFT_BUTTON) && CheckCollisionPointRec(mouse, resizer)) resizing = true;
+ if (IsMouseButtonDown(MOUSE_BUTTON_LEFT) && CheckCollisionPointRec(mouse, resizer)) resizing = true;
}
// Move resizer rectangle properly