Skip to content

Instantly share code, notes, and snippets.

View TheBlckbird's full-sized avatar
🖥️

TheBlckbird TheBlckbird

🖥️
  • Germany
  • 23:06 (UTC +01:00)
View GitHub Profile
@TheBlckbird
TheBlckbird / libSDL3.patch
Created January 29, 2026 12:49
SDL3 patch to fix scrolling on MacOS in Terraria
diff -u a/src/video/cocoa/SDL_cocoamouse.m b/src/video/cocoa/SDL_cocoamouse.m
--- a/src/video/cocoa/SDL_cocoamouse.m 2025-11-20 13:51:22
+++ b/src/video/cocoa/SDL_cocoamouse.m 2026-01-29 13:40:03
@@ -615,8 +615,22 @@
SDL_MouseWheelDirection direction;
CGFloat x, y;
- x = -[event scrollingDeltaX];
- y = [event scrollingDeltaY];
+ // x = -[event scrollingDeltaX];