#How to get right or left mouse input on button?

1 messages · Page 1 of 1 (latest)

warm jetty
#

on a UI button object, you mean?

#
if event is InputEventMouseButton and event.pressed:
        match event.button_index:
            BUTTON_LEFT:
                # Left mouse button was pressed
                print("Left mouse button clicked on the button")
            BUTTON_RIGHT:
                # Right mouse button was pressed
                print("Right mouse button clicked on the button")
#

if so, thats what you probably need

hearty cobalt
#

Can you pls explain it