Watch
2
0
Fork
You've already forked raylib-cs
0

replace occurences with MOUSE_*

This commit is contained in:
danil 2024-01-18 10:53:31 +02:00
commit 910befbff9
17 changed files with 29 additions and 29 deletions

View file

@ -67,7 +67,7 @@ public class SpriteButton
// Check button state
if (CheckCollisionPointRec(mousePoint, btnBounds))
{
if (IsMouseButtonDown(MouseButton.MOUSE_LEFT_BUTTON))
if (IsMouseButtonDown(MouseButton.Left))
{
btnState = 2;
}
@ -76,7 +76,7 @@ public class SpriteButton
btnState = 1;
}
if (IsMouseButtonReleased(MouseButton.MOUSE_LEFT_BUTTON))
if (IsMouseButtonReleased(MouseButton.Left))
{
btnAction = true;
}