Grx.Event.prototype.get_button

function get_button(): Number(guint32) {
    // Gjs wrapper for grx_event_get_button()
}
  

Gets the button for a button event

Returns

the button index or 0 if event is not a Grx.ButtonEvent.