I need to hook an external Input library. (wich provide much more features, multiple mouses and keyboards for example)
Let me try to explain what I need to achieve and to understand few things that I'm missing about SFML.
1) I don't understand this piece of code:
void WindowImplWin32::processEvents()
{
// We update the window only if we own it
if (!myCallback)
{
MSG Message;
while (PeekMessage(&Message, NULL, 0, 0, PM_REMOVE))
{
TranslateMessage(&Message);
DispatchMessage(&Message);
}
}
}
doesn't "globalOnEvent" already process events?
2) The library (cross platform library) I want to use needs to be used like that:
example:
MSG Message;
while (PeekMessage(&Message, NULL, 0, 0, PM_REMOVE))
{
TranslateMessage(&Message);
DispatchMessage(&Message);
}
///the following piece of code will be ideally added to "processEvents"
//cross platform stuff of the library
if( keyboard )
{
keyboard ->capture(); //capture the event
if( !keyboard ->buffered() )
handleUnBufferedKeys();
}
the problem is that I don't know how changin the "processEvents" method will affect SFML event system.
3)For example what about resizing/closing events? They will get lost?
4)How can I stop SFML from generating MOUSE/KEYBOARD/JOYSTICK events in order to use events from external library?