subsoap/defos

defos.set_cursor_locked behaves badly on windows

Closed this issue · 6 comments

It should not be allowed to change cursor position when window is not in focus

Same with defos.move_cursor_to

I'm pretty sure it's bad UX to lock the user's cursor when your app is not in focus...

Yes, I'm saying the current DefOS behavior is bad and needs to not change cursor position when game does not have focus as it currently does.

Oh, fair. You're right

Defold devs can of course use window.set_listener to detect when game has focus or not, but I don't think we should give people the option to change mouse position when window is not in focus as the uses for it are more nefarious than legitimate.

Not to mention, many people might just not think this as a problem