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
This commit is contained in:
דור שפירא 2022-07-30 09:22:06 +03:00
parent dead4cfcb5
commit 4941bc88ef

View file

@ -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()