File tree Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,17 @@ package sdl
7
7
#if !SDL_VERSION_ATLEAST(2,0,2)
8
8
#define SDL_RENDER_TARGETS_RESET (0x2000)
9
9
#endif
10
+
11
+ #if !SDL_VERSION_ATLEAST(2,0,4)
12
+ #pragma message("SDL_DROPTEXT is not supported before SDL 2.0.4")
13
+ #define SDL_DROPTEXT (0)
14
+
15
+ #pragma message("SDL_DROPBEGIN is not supported before SDL 2.0.4")
16
+ #define SDL_DROPBEGIN (0)
17
+
18
+ #pragma message("SDL_DROPCOMPLETE is not supported before SDL 2.0.4")
19
+ #define SDL_DROPCOMPLETE (0)
20
+ #endif
10
21
*/
11
22
import "C"
12
23
import "unsafe"
@@ -84,7 +95,10 @@ const (
84
95
CLIPBOARDUPDATE = C .SDL_CLIPBOARDUPDATE // the clipboard changed
85
96
86
97
// Drag and drop events
87
- DROPFILE = C .SDL_DROPFILE // the system requests a file open
98
+ DROPFILE = C .SDL_DROPFILE // the system requests a file open
99
+ DROPTEXT = C .SDL_DROPTEXT // text/plain drag-and-drop event
100
+ DROPBEGIN = C .SDL_DROPBEGIN // a new set of drops is beginning (NULL filename)
101
+ DROPCOMPLETE = C .SDL_DROPCOMPLETE // current set of drops is now complete (NULL filename)
88
102
89
103
// Render events
90
104
RENDER_TARGETS_RESET = C .SDL_RENDER_TARGETS_RESET // the render targets have been reset and their contents need to be updated (>= SDL 2.0.2)
You can’t perform that action at this time.
0 commit comments