-
-
Notifications
You must be signed in to change notification settings - Fork 13
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
Mouse input not working #4
Comments
Same is true for keyboard input. |
|
Have you found a solution? PrimaryWindow is an internal variable, so I cannot manually set it. Any work around? |
Okay, I found a workaround. I just use the System.Windows.Input Keyboard and Mouse objects to handle input. Seems to work about the same. Although I'm trying to figure out a good solution for storing previous states. |
Working solution in this project for Mouse and Keyboard states: https://github.com/MarcStan/monogame-framework-wpfinterop |
thta project handles iMG nput but for my level editor i stick wiht the windows input... i just want to draw the stuff...this one is simpler... its almost better to build an in game editor in some cases....i use an input manager and map key to gamepad like buttons .. issue is threading and polling as well in WPF... |
I am trying to get mouse input to work like this in the update method as usual:
if (Mouse.GetState().LeftButton == ButtonState.Pressed)
This is just using the sample project and does not pick up any type of clicks.
The text was updated successfully, but these errors were encountered: