Skip to content

Commit 4622f42

Browse files
committed
Port event.c to SDL3
1 parent 6e24c38 commit 4622f42

File tree

3 files changed

+229
-25
lines changed

3 files changed

+229
-25
lines changed

src_c/_pygame.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -308,8 +308,10 @@ typedef enum {
308308
PGPOST_CONTROLLERTOUCHPADMOTION,
309309
PGPOST_CONTROLLERTOUCHPADUP,
310310
PGPOST_CONTROLLERSENSORUPDATE,
311+
#if !SDL_VERSION_ATLEAST(3, 0, 0)
311312
PGPOST_DOLLARGESTURE,
312313
PGPOST_DOLLARRECORD,
314+
#endif
313315
PGPOST_DROPFILE,
314316
PGPOST_DROPTEXT,
315317
PGPOST_DROPBEGIN,
@@ -334,7 +336,9 @@ typedef enum {
334336
PGPOST_MOUSEBUTTONDOWN,
335337
PGPOST_MOUSEBUTTONUP,
336338
PGPOST_MOUSEWHEEL,
339+
#if !SDL_VERSION_ATLEAST(3, 0, 0)
337340
PGPOST_MULTIGESTURE,
341+
#endif
338342
PGPOST_NOEVENT,
339343
PGPOST_QUIT,
340344
PGPOST_RENDER_TARGETS_RESET,

0 commit comments

Comments
 (0)