OSDN Git Service

SDL_DropEvent サンプルコードを修正
authormaruhiro <maruhiro@bridge.ocn.ne.jp>
Sun, 21 Jun 2015 10:42:41 +0000 (19:42 +0900)
committermaruhiro <maruhiro@bridge.ocn.ne.jp>
Sun, 21 Jun 2015 10:42:41 +0000 (19:42 +0900)
SDL_DropEvent.html

index 882fd54..df476d0 100644 (file)
@@ -51,6 +51,8 @@ int main(int argc, char *argv[]) {
         return 1;\r
     }\r
 \r
+    SDL_EventState(SDL_DROPFILE, SDL_ENABLE);\r
+\r
     for(;;) {                               //  \83v\83\8d\83O\83\89\83\80\83\8b\81[\83v\r
         while (SDL_PollEvent(&event)) {\r
             switch (event.type) {\r