Frozen mouse doesn't spin flycam

main
Cameron Murphy Reikes 8 months ago
parent 82039464d8
commit 33ecabeee4

@ -7391,7 +7391,7 @@ void event(const sapp_event *e)
if(flycam)
{
if (e->type == SAPP_EVENTTYPE_MOUSE_MOVE)
if (e->type == SAPP_EVENTTYPE_MOUSE_MOVE && !mouse_frozen)
{
const float rotation_speed = 0.001f;
flycam_horizontal_rotation -= e->mouse_dx * rotation_speed;

Loading…
Cancel
Save