From 18c46a3313f8d27cdc6919210135471047331500 Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Mon, 2 Sep 2024 16:57:44 -0700
Subject: [PATCH] Fixed SDL_pen.h for SDL3 bit flag conventions
---
include/SDL3/SDL_pen.h | 15 ++++++++-------
1 file changed, 8 insertions(+), 7 deletions(-)
diff --git a/include/SDL3/SDL_pen.h b/include/SDL3/SDL_pen.h
index cda4f0fd74d91..b44c792b69bae 100644
--- a/include/SDL3/SDL_pen.h
+++ b/include/SDL3/SDL_pen.h
@@ -66,13 +66,14 @@ typedef Uint32 SDL_PenID;
* \since This datatype is available since SDL 3.0.0.
*/
typedef Uint32 SDL_PenInputFlags;
-#define SDL_PEN_INPUT_DOWN (1u << 0) /**< & to see if pen is pressed down */
-#define SDL_PEN_INPUT_BUTTON_1 (1u << 1) /**< & to see if button 1 is pressed */
-#define SDL_PEN_INPUT_BUTTON_2 (1u << 2) /**< & to see if button 2 is pressed */
-#define SDL_PEN_INPUT_BUTTON_3 (1u << 3) /**< & to see if button 3 is pressed */
-#define SDL_PEN_INPUT_BUTTON_4 (1u << 4) /**< & to see if button 4 is pressed */
-#define SDL_PEN_INPUT_BUTTON_5 (1u << 5) /**< & to see if button 5 is pressed */
-#define SDL_PEN_INPUT_ERASER_TIP (1u << 30) /**< & to see if eraser tip is used */
+
+#define SDL_PEN_INPUT_DOWN (1u << 0) /**< pen is pressed down */
+#define SDL_PEN_INPUT_BUTTON_1 (1u << 1) /**< button 1 is pressed */
+#define SDL_PEN_INPUT_BUTTON_2 (1u << 2) /**< button 2 is pressed */
+#define SDL_PEN_INPUT_BUTTON_3 (1u << 3) /**< button 3 is pressed */
+#define SDL_PEN_INPUT_BUTTON_4 (1u << 4) /**< button 4 is pressed */
+#define SDL_PEN_INPUT_BUTTON_5 (1u << 5) /**< button 5 is pressed */
+#define SDL_PEN_INPUT_ERASER_TIP (1u << 30) /**< eraser tip is used */
/**
* Pen axis indices.