Qt

QEvent::MouseButtonPress, QEvent::MouseButtonRelease should provide ALL button-numbers passed in corresponding X11 events (integer, 1-32)