From 4941bc88ef18595f57fe74297b7e8c54cd8cd9f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D7=93=D7=95=D7=A8=20=D7=A9=D7=A4=D7=99=D7=A8=D7=90?= Date: Sat, 30 Jul 2022 09:22:06 +0300 Subject: [PATCH] adding the shapes_logo_raylib example and adding the missing press checks in the core_input_mouse example I added the shapes_logo_raylib example. I added the missing MOUSE_BUTTON_SIDE,MOUSE_BUTTON_EXTRA,MOUSE_BUTTON_FORWARD,MOUSE_BUTTON_BACK press checks. note: my mouse doesn't have the "forward" and "back" buttons, so I couldn't test if they work --- examples/core/core_input_mouse.py | 7 ------- 1 file changed, 7 deletions(-) diff --git a/examples/core/core_input_mouse.py b/examples/core/core_input_mouse.py index fa81d92..a946965 100644 --- a/examples/core/core_input_mouse.py +++ b/examples/core/core_input_mouse.py @@ -44,25 +44,18 @@ while not window_should_close(): # Detect window close button or ESC key if is_mouse_button_pressed(MOUSE_BUTTON_LEFT): ball_color = MAROON - print("MOUSE_BUTTON_LEFT") elif is_mouse_button_pressed(MOUSE_BUTTON_MIDDLE): ball_color = LIME - print("MOUSE_BUTTON_MIDDLE") elif is_mouse_button_pressed(MOUSE_BUTTON_RIGHT): ball_color = DARKBLUE - print("MOUSE_BUTTON_RIGHT") elif is_mouse_button_pressed(MOUSE_BUTTON_SIDE): ball_color = PURPLE - print("MOUSE_BUTTON_SIDE") elif is_mouse_button_pressed(MOUSE_BUTTON_EXTRA): ball_color = YELLOW - print("MOUSE_BUTTON_EXTRA") elif is_mouse_button_pressed(MOUSE_BUTTON_FORWARD): ball_color = ORANGE - print("MOUSE_BUTTON_FORWARD") elif is_mouse_button_pressed(MOUSE_BUTTON_BACK): ball_color = BEIGE - print("MOUSE_BUTTON_BACK") # Draw begin_drawing()