Skip to content

Commit 125e63f

Browse files
committed
FIX: Add UNITY_INPUTSYSTEM_SUPPORTS_MOUSE_SCRIPT_EVENTS to tests asmdef so MouseEvents tests compile
versionDefines are scoped to the asmdef that declares them and do not propagate to referencing assemblies. UNITY_INPUTSYSTEM_SUPPORTS_MOUSE_SCRIPT_EVENTS was declared only on the runtime asmdef (Unity.InputSystem.asmdef, Unity >= 6000.4.0a4), so the symbol was always undefined in the test assembly. The entire CoreTests_MouseEvents.cs file is gated by #if UNITY_INPUTSYSTEM_SUPPORTS_MOUSE_SCRIPT_EVENTS, which meant the MouseEvents_CanReceive* tests (including the regression test that catches the OnMouseUpAsButton focus-update bug fixed in the previous commit) silently compiled out and never ran in CI. Mirror the runtime versionDefine on Unity.InputSystem.Tests.asmdef.
1 parent 99f6a16 commit 125e63f

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

Assets/Tests/InputSystem/Unity.InputSystem.Tests.asmdef

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,11 @@
7272
"expression": "6000.3.0a6",
7373
"define": "UNITY_INPUT_SYSTEM_PLATFORM_POLLING_FREQUENCY"
7474
},
75+
{
76+
"name": "Unity",
77+
"expression": "6000.4.0a4",
78+
"define": "UNITY_INPUTSYSTEM_SUPPORTS_MOUSE_SCRIPT_EVENTS"
79+
},
7580
{
7681
"name": "Unity",
7782
"expression": "6000.5.0a8",

0 commit comments

Comments
 (0)