NSEvent.buttonNumber

Undocumented in source. Be warned that the author may not have intended to support it.
struct NSEvent
nothrow @nogc
int
buttonNumber
()

Meta