-
Notifications
You must be signed in to change notification settings - Fork 30
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
Application does not detect mouse motion events on macOS #68
Comments
I don't see anything in the code that would hint to why this may be happening. Are you getting mouse motion events? (can you modify Input.hs to print them if they occur). Can you somehow add a print here: https://github.com/ivanperez-keera/haskanoid/blob/master/src/Input.hs#L232 So that, if you are getting mouse motion as a different event, you can see what it is? Does this program work for you? |
There no other different events being fired except for LostFocus and GetFocus events. After some more investigation, there seems to be two issues here:
|
When trying the input example I still see problem 1, so it seems to be an SDL problem. But after clicking, I can move the ball without problems. |
Problem
Right after startup the application does not respond to mouse motion events. Clicking to start the ball works but the ball goes straight up and leaves the window through the top. All keyboard events go to the terminal that started haskanoid.
System info
macOS 10.13.15
Darwin lorien.local 17.6.0 Darwin Kernel Version 17.6.0: Tue May 8 15:22:16 PDT 2018; root:xnu-4570.61.1~1/RELEASE_X86_64 x86_64
GHC: x86_64-osx-ghc-8.0.2
Clang: Apple LLVM version 9.1.0 (clang-902.0.39.2)
SDL: 1.2.15
The text was updated successfully, but these errors were encountered: