Renamed mouse button enum
This commit is contained in:
parent
23bc3e9c16
commit
4cc8e79678
1 changed files with 77 additions and 74 deletions
|
|
@ -53,10 +53,10 @@ int main(void)
|
|||
// Check button state
|
||||
if (CheckCollisionPointRec(mousePoint, btnBounds))
|
||||
{
|
||||
if (IsMouseButtonDown(MOUSE_LEFT_BUTTON)) btnState = 2;
|
||||
if (IsMouseButtonDown(MOUSE_BUTTON_LEFT)) btnState = 2;
|
||||
else btnState = 1;
|
||||
|
||||
if (IsMouseButtonReleased(MOUSE_LEFT_BUTTON)) btnAction = true;
|
||||
if (IsMouseButtonReleased(MOUSE_BUTTON_LEFT)) btnAction = true;
|
||||
}
|
||||
else btnState = 0;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue