Unity-Technologies / InputSystem

An efficient and versatile input system for Unity.
Other
1.43k stars 310 forks source link

FIX: Avoid throwing exceptions from edit mode QA test script. #1884

Closed ekcoh closed 7 months ago

ekcoh commented 7 months ago

Description

Minimal fix to exceptions being thrown when opening EditMode QA test scene.

Changes made

Added a null check for when there is no mouse. Also changed from class to struct to avoid null checking of state.

Notes

Please write down any additional notes, remove the section if not applicable.

Checklist

Before review:

During merge:

ekcoh commented 7 months ago

Decided to not merge this change.