Description

Whether a mouse button is pressed at the moment of the event.

Valid if and only if Efl.Input.Pointer.value_has(button_pressed) is true.

Since 1.18

Keys

  • button - 1 to 32, 0 if not a button event.

Values

  • pressed - true when the button was pressed, false otherwise

Signature

@property button_pressed {
    get {
        keys {
            button: int;
        }
        values {
            pressed: bool;
        }
    }
    set {
        keys {
            button: int;
        }
        values {
            pressed: bool;
        }
    }
}

C signature

Eina_Bool efl_input_pointer_button_pressed_get(const Eo *obj, int button);
void efl_input_pointer_button_pressed_set(Eo *obj, int button, Eina_Bool pressed);

Implemented by

  • Efl.Input.Pointer.button_pressed