Reputation: 541
I want to use SDL to handle my events but I'm using OpenGL for graphics. Is there a way to use the event handleing of SDL even though I don't actually have any active SDL window?
Upvotes: 0
Views: 257
Reputation: 29240
If you're using OpenGL for graphics, you must have a window somewhere to contain the OpenGL canvas. I very much doubt that you will be able to get any input from SDL's API's unless SDL is managing the window. At least on Win32 systems, all input comes through the window message callback, so unless SDL is tied into that, it won't see any input messages at all.
Upvotes: 5