Cryru / Emotion

A game engine.
MIT License
56 stars 5 forks source link

Record mouse position at time of click and overwrite in event? #86

Open Cryru opened 1 year ago

Cryru commented 1 year ago

Currently the map position is polled as a separate event, but the mouse down/up events in Win32 provide a position. It is theoretically possible that with fast mouse movement these two positions can be different. It would be better to overwrite Host.MousePosition with the event position when it is being fired (and possibly leaving it that way for until the next mouse poll?)