Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign up`mouse::get_position(ctx)?` results in `EventPump` SDL error. #283
Comments
dannyfritz
changed the title
moues::get_position(ctx)? results in `EventPump` SDL error.
`mouse::get_position(ctx)?` results in `EventPump` SDL error.
Feb 13, 2018
This comment has been minimized.
This comment has been minimized.
|
Confirmed on master and devel branches. I think I know what's going on but it's going to take some sticky lifetime stuff to fix. I suggest using the |
icefoxen
added
bug
Type-CODE
labels
Feb 14, 2018
This comment has been minimized.
This comment has been minimized.
|
It was more sticky than anticipated! This should be fixed in devel branch though, please test. However, I don't like it, because it requires storing the mouse position from events in One possible solution would be to add a hook to feed events into the |
icefoxen
added a commit
that referenced
this issue
Feb 15, 2018
This comment has been minimized.
This comment has been minimized.
|
Thanks for the information, I'll use |
icefoxen
referenced this issue
Feb 19, 2018
Closed
Need a simple API for telling the Context about input events. #284
This comment has been minimized.
This comment has been minimized.
|
Closing this, pondering API enhancements continued in #284 |
dannyfritz commentedFeb 13, 2018
I'm having trouble using
mouse::get_position. Is there a certain location I can use it? Seems using it within the event loop doesn't work for me.results in