Luminary
Luminary copied to clipboard
Framerate independent input polling
Handle input polling in a separate thread. Communication to the main thread should be done through double buffering and mutexes. Currently Im thinking about an interface like this:
struct InputHandler;
struct Input;
InputHandler init_input_handler();
void start_input_handler(InputHandler*);
Input get_input(InputHandler*);
void destroy_input_handler(InputHandler*);
I am looking to use the windows pthread implementation found on Github.