I am creating a cross-platform game engine, and now I am focused on the input system.
I wrote an abstract input system that passes messages up and is loaded by platform-specific modules working in a separate thread.
In the windows, I created the "Message Only" window, into which the system with messages (translated to a platform independent) from RAWINPUT is fed in.
Now I am having problems figuring out how to do this on a unix based system. Is there a convenient way to get input (keyup, keydown, mousemove ...) from the kernel? Or in any other way without having to display any window?
EDIT
I do not want my input system to depend on my Renderer. Renderer should just notify when the focus of the application has changed ... Therefore, I want the input system to work on a different thread than on the renderer.
source share