This is small qt lib for handle raw sdl events:
initialise listner manager
#include "sdleventmanager.h"
QtSDL::SDLEventManager* manager = new QtSDL::SDLEventManager();
manager.start();
handle events:
class QObjectChild: public QObject {
...
bool event(QEvent* ev) override {
if (auto sdl = dynamci_cast<QSDLEvent>(ev)) {
...
}
}
...
}