Ignore right clicks on GUI button

Is there a way to make GUI button work only when it’s clicked with left mouse button, ignoring any other type of mouse click? I know that I can just disable the button when user clicks with some other mouse button, but is there a better solution?

Found my question answered here by jonas echterhoff :diamonds::diamonds:. All ignored input events should be caught before calling the GUI:

if (Event.current.button > 0 && Event.current.type != EventType.Repaint 
&& Event.current.type != EventType.Layout)
    Event.current.Use();