MCJack123 / craftos2

A fast, modern, and feature-filled ComputerCraft emulator written in C++.
https://www.craftos-pc.cc
Other
230 stars 27 forks source link

Mouse move events not being sent for some reason. #318

Closed fatboychummy closed 9 months ago

fatboychummy commented 1 year ago

Starting this off by saying that I have no clue what exactly is causing this. I'll play around a bit more but I don't think I'll find the cause of this.

Issue

mouse_move events slowly stop appearing, then stop altogether. Less and less events appear (you can see the rate at which they come in slow down a lot) until eventually they just stop. Clicking "resumes" the events for a couple of seconds or so.

Reproduction

  1. Open lua prompt
  2. Run while true do print(os.pullEvent()) end
  3. Move your mouse cursor around, quickly, slowly, etc. I've noticed it happens fast if you go in a circle for some reason.

Expected

Mouse move events should not ratelimit or whatever is happening.

Screenshots, videos

https://user-images.githubusercontent.com/39929480/235338141-ffd871f4-e672-4fcf-bfa7-7dc99658159a.mp4

image

Environment: