Luminary icon indicating copy to clipboard operation
Luminary copied to clipboard

Framerate independent input polling

Open MilchRatchet opened this issue 4 years ago • 0 comments

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.

MilchRatchet avatar Jul 20 '21 06:07 MilchRatchet