jjant / runty8

A Pico8 clone in Rust.
MIT License
227 stars 17 forks source link

Fix mouse position not getting updated in the editor #75

Closed jjant closed 1 year ago

jjant commented 1 year ago

Description

In #73, while trying to make running games the editor consistent with running them standalone in the runtime, I accidentally made the editor not update the cursor on mouse move events.

Here, I've put in a workaround (hopefully a temporary solution) to fix this, by keeping track of the cursor position both in the game and in the top-level controller.


By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.