SDL2Mouse.isButtonPressed

class SDL2Mouse
pure const nothrow
bool
isButtonPressed
(
int mask
)

Return Value

Type: bool

true if a specific mouse button defined by mask is pressed

Examples

// Check if the left mouse button is pressed
if(_sdl2.mouse.isButtonPressed(SDL_BUTTON_LMASK))
    ...

Meta