BaseItem.input.on_button_up method

on_button_up(self, handler: Callable[[], None]) -> None:

Triggers whenever the main input is released inside of this item.

Calling this function on an existing handler overwrites the handler.

Parameters

  • handler: Callable[[], None]

    function to call on release. Pass null to remove the handler.