Commit 5a6e3f8c authored by hybrid's avatar hybrid

Added user evnet implementation for SDL.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@1696 dfc29bdd-3216-0410-991c-e03cc46cb475
parent abe39388
...@@ -282,6 +282,14 @@ bool CIrrDeviceSDL::run() ...@@ -282,6 +282,14 @@ bool CIrrDeviceSDL::run()
WindowMinimized = (SDL_event.active.gain!=1); WindowMinimized = (SDL_event.active.gain!=1);
break; break;
case SDL_USEREVENT:
irrevent.EventType = irr::EET_USER_EVENT;
irrevent.UserEvent.UserData1 = reinterpret_cast<s32>(SDL_event.user.data1);
irrevent.UserEvent.UserData2 = reinterpret_cast<s32>(SDL_event.user.data2);
postEventFromUser(irrevent);
break;
default: default:
break; break;
} // end switch } // end switch
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment