MouseEvent.buttonLinear

Returns a linear representation of mouse button, for use with static arrays. Guaranteed to be >= 0 && <= 15

Its implementation is based on range-limiting core.bitop.bsf(button) + 1.

struct MouseEvent
@property const
ubyte
buttonLinear
()
Suggestion Box / Bug Report