cmann1 / dustmod-issues

Dustmod issue tracker
0 stars 0 forks source link

API `mouse_state` lags a frame behind in `editor_step` #20

Closed cmann1 closed 3 years ago

cmann1 commented 3 years ago

The problem is that scene::mouse_state returns the value of player_mouse_state, but player_mouse_state is updated in step_world which runs after editor_step. Possible fix: Add a check inside scene::mouse_state - if it's called during editor_step directly return the input mouse state instead (Alexspeedy)

cmann1 commented 3 years ago

No longer an issue with the new input API