klyn.gui.event.MouseEvent.button
property
public readonly property button as Int
Description

Pointer button index, or 0 when no button is associated with the event.

if e.button == 1:
print("primary button")