summaryrefslogtreecommitdiffhomepage
path: root/examples/textures/textures_image_generation.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/textures/textures_image_generation.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/textures/textures_image_generation.c')
-rw-r--r--examples/textures/textures_image_generation.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/textures/textures_image_generation.c b/examples/textures/textures_image_generation.c
index 0bb10583..e2513a87 100644
--- a/examples/textures/textures_image_generation.c
+++ b/examples/textures/textures_image_generation.c
@@ -59,7 +59,7 @@ int main(void)
{
// Update
//----------------------------------------------------------------------------------
- if (IsMouseButtonPressed(MOUSE_LEFT_BUTTON) || IsKeyPressed(KEY_RIGHT))
+ if (IsMouseButtonPressed(MOUSE_BUTTON_LEFT) || IsKeyPressed(KEY_RIGHT))
{
currentTexture = (currentTexture + 1)%NUM_TEXTURES; // Cycle between the textures
}