Skip to content

Commit 4941bc8

Browse files
committed
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
1 parent dead4cf commit 4941bc8

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

examples/core/core_input_mouse.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -44,25 +44,18 @@
4444

4545
if is_mouse_button_pressed(MOUSE_BUTTON_LEFT):
4646
ball_color = MAROON
47-
print("MOUSE_BUTTON_LEFT")
4847
elif is_mouse_button_pressed(MOUSE_BUTTON_MIDDLE):
4948
ball_color = LIME
50-
print("MOUSE_BUTTON_MIDDLE")
5149
elif is_mouse_button_pressed(MOUSE_BUTTON_RIGHT):
5250
ball_color = DARKBLUE
53-
print("MOUSE_BUTTON_RIGHT")
5451
elif is_mouse_button_pressed(MOUSE_BUTTON_SIDE):
5552
ball_color = PURPLE
56-
print("MOUSE_BUTTON_SIDE")
5753
elif is_mouse_button_pressed(MOUSE_BUTTON_EXTRA):
5854
ball_color = YELLOW
59-
print("MOUSE_BUTTON_EXTRA")
6055
elif is_mouse_button_pressed(MOUSE_BUTTON_FORWARD):
6156
ball_color = ORANGE
62-
print("MOUSE_BUTTON_FORWARD")
6357
elif is_mouse_button_pressed(MOUSE_BUTTON_BACK):
6458
ball_color = BEIGE
65-
print("MOUSE_BUTTON_BACK")
6659
# Draw
6760
begin_drawing()
6861

0 commit comments

Comments
 (0)