(This is the documentation for SDL3, which is under heavy development and the API is changing! SDL2 is the current stable version!)
Used as a mask when testing buttons in buttonstate.
Defined in <SDL3/SDL_mouse.h>
Syntax
#define SDL_BUTTON(X) (1 << ((X)-1))
- 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
Version
This macro is available since SDL 3.0.0.
CategoryAPI, CategoryAPIMacro
[
edit
|
delete
|
history
|
feedback
|
raw
]