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

can't capture event in subthread #23

Open
pomolnc opened this issue Jan 23, 2025 · 0 comments
Open

can't capture event in subthread #23

pomolnc opened this issue Jan 23, 2025 · 0 comments

Comments

@pomolnc
Copy link

pomolnc commented Jan 23, 2025

hi,
I'm fresh to SDL. I met some problems with capturing events of joysticks when programming with different threads.
I found SDL_WaitEvent(&event) or SDL_PollEvent(&event) only works in main thread whereas failing to capture nothing when working in subthread.
could you please give me some advice about getting this problem solved.
many regards.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant