#How to check for Left or Right Mouse Input

6 messages · Page 1 of 1 (latest)

quick jasper
#

if Input.is_action_pressed("Mouse Left") could work

btw, your if MOUSE_BUTTON_LEFT: condition doesnt really compare anything dynamically. MOUSE_BUTTON_LEFT is just an constant built-in integer value an if some_integer: will return true if that integer is not 0

#

its meant to be on one side of a comparison against an input event for example, if it is available
if input_event is InputEventMouseButton and input_event.button_index == MOUSE_BUTTON_LEFT

honest trout
#

I tried the first one

#

Input.is_action_pressed("Mous left")

#

It did not work

#

@quick jasper