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:
parent
dead4cfcb5
commit
4941bc88ef
1 changed files with 0 additions and 7 deletions
|
@ -44,25 +44,18 @@ while not window_should_close(): # Detect window close button or ESC key
|
||||||
|
|
||||||
if is_mouse_button_pressed(MOUSE_BUTTON_LEFT):
|
if is_mouse_button_pressed(MOUSE_BUTTON_LEFT):
|
||||||
ball_color = MAROON
|
ball_color = MAROON
|
||||||
print("MOUSE_BUTTON_LEFT")
|
|
||||||
elif is_mouse_button_pressed(MOUSE_BUTTON_MIDDLE):
|
elif is_mouse_button_pressed(MOUSE_BUTTON_MIDDLE):
|
||||||
ball_color = LIME
|
ball_color = LIME
|
||||||
print("MOUSE_BUTTON_MIDDLE")
|
|
||||||
elif is_mouse_button_pressed(MOUSE_BUTTON_RIGHT):
|
elif is_mouse_button_pressed(MOUSE_BUTTON_RIGHT):
|
||||||
ball_color = DARKBLUE
|
ball_color = DARKBLUE
|
||||||
print("MOUSE_BUTTON_RIGHT")
|
|
||||||
elif is_mouse_button_pressed(MOUSE_BUTTON_SIDE):
|
elif is_mouse_button_pressed(MOUSE_BUTTON_SIDE):
|
||||||
ball_color = PURPLE
|
ball_color = PURPLE
|
||||||
print("MOUSE_BUTTON_SIDE")
|
|
||||||
elif is_mouse_button_pressed(MOUSE_BUTTON_EXTRA):
|
elif is_mouse_button_pressed(MOUSE_BUTTON_EXTRA):
|
||||||
ball_color = YELLOW
|
ball_color = YELLOW
|
||||||
print("MOUSE_BUTTON_EXTRA")
|
|
||||||
elif is_mouse_button_pressed(MOUSE_BUTTON_FORWARD):
|
elif is_mouse_button_pressed(MOUSE_BUTTON_FORWARD):
|
||||||
ball_color = ORANGE
|
ball_color = ORANGE
|
||||||
print("MOUSE_BUTTON_FORWARD")
|
|
||||||
elif is_mouse_button_pressed(MOUSE_BUTTON_BACK):
|
elif is_mouse_button_pressed(MOUSE_BUTTON_BACK):
|
||||||
ball_color = BEIGE
|
ball_color = BEIGE
|
||||||
print("MOUSE_BUTTON_BACK")
|
|
||||||
# Draw
|
# Draw
|
||||||
begin_drawing()
|
begin_drawing()
|
||||||
|
|
||||||
|
|
Reference in a new issue