logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

SDL_MouseButtonFlags - A bitmask of pressed mouse buttons, as reported by SDL_GetMouseState, etc.

Availability

       This datatype is available since SDL 3.2.0.

Description

       • Button 1: Left mouse button

       • Button 2: Middle mouse button

       • Button 3: Right mouse button

       • Button 4: Side mouse button 1

       • Button 5: Side mouse button 2

Name

       SDL_MouseButtonFlags - A bitmask of pressed mouse buttons, as reported by SDL_GetMouseState, etc.

See Also

SDL_GetMouseState(3), SDL_GetGlobalMouseState(3), SDL_GetRelativeMouseState(3)

Simple Directmedia Layer                           SDL 3.2.20                        SDL_MouseButtonFlags(3type)

Synopsis

#include<SDL3/SDL_mouse.h>typedefUint32SDL_MouseButtonFlags;#defineSDL_BUTTON_LEFT1#defineSDL_BUTTON_MIDDLE2#defineSDL_BUTTON_RIGHT3#defineSDL_BUTTON_X14#defineSDL_BUTTON_X25#defineSDL_BUTTON_MASK(X)(1u<<((X)-1))#defineSDL_BUTTON_LMASKSDL_BUTTON_MASK(SDL_BUTTON_LEFT)#defineSDL_BUTTON_MMASKSDL_BUTTON_MASK(SDL_BUTTON_MIDDLE)#defineSDL_BUTTON_RMASKSDL_BUTTON_MASK(SDL_BUTTON_RIGHT)#defineSDL_BUTTON_X1MASKSDL_BUTTON_MASK(SDL_BUTTON_X1)#defineSDL_BUTTON_X2MASKSDL_BUTTON_MASK(SDL_BUTTON_X2)

See Also