Skip to content

Commit 4e7bc65

Browse files
committed
sdl: mouse.go: Add fallback definitions for SDL_MOUSEWHEEL_NORMAL and SDL_MOUSEWHEEL_FLIPPED
Signed-off-by: Lilis Iskandar <[email protected]>
1 parent f2dd51e commit 4e7bc65

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

sdl/mouse.go

+6
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,12 @@ static int SDL_CaptureMouse(SDL_bool enabled)
1616
return -1;
1717
}
1818
#endif
19+
20+
#pragma message("SDL_MOUSEWHEEL_NORMAL is not supported before SDL 2.0.4")
21+
#define SDL_MOUSEWHEEL_NORMAL (0)
22+
23+
#pragma message("SDL_MOUSEWHEEL_FLIPPED is not supported before SDL 2.0.4")
24+
#define SDL_MOUSEWHEEL_FLIPPED (0)
1925
*/
2026
import "C"
2127
import "unsafe"

0 commit comments

Comments
 (0)