Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Framerate independent input polling #28

Open
MilchRatchet opened this issue Jul 20, 2021 · 0 comments
Open

Framerate independent input polling #28

MilchRatchet opened this issue Jul 20, 2021 · 0 comments
Labels
CPU Runs on the CPU Feature New feature or request Realtime Realtime mode only

Comments

@MilchRatchet
Copy link
Owner

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 MilchRatchet added Feature New feature or request CPU Runs on the CPU Realtime Realtime mode only labels Jul 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CPU Runs on the CPU Feature New feature or request Realtime Realtime mode only
Projects
None yet
Development

No branches or pull requests

1 participant