Using input event without initialising Video |
Using input event without initialising Video |
Andre Krause
Guest
|
LC0 wrote:
bound to a window - so you need at least to tell sdl wich window you are processing events from. and if that window moves, sdl needs to know in order to calculate correct relative mouse coordinates. so there is (i think) no other way than to use that sdl window_id hack described in the OGRE - wiki. sadly. a good thing would be an api modification to give a platform independent, reliable way to tell sdl the window id. not via setting environment vars and doing other stuff to get it to work. i - personally - dropped the idea to integrate sdl into an fltk application. i found the window-id hack way to strange and with too many platform dependent things. look here, its quite a mess: http://www.ogre3d.org/wiki/index.php/Using_SDL_Input so i will stick to sdl purely - and try to polish my ugly selfwritten gui :-/ by the way, is there any tutorial on how to design and software engineer a GUI? i've already wasted so much time doing it by hard.. reinventing once again the rectangle. |
|||||||||||||
|