Skip to content

Commit 9e161b3

Browse files
committed
added defines
1 parent 6429e90 commit 9e161b3

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

Assets/Tests/InputSystem/CoreTests_MouseEvents.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#if UNITY_6000_3_OR_NEWER
1+
#if UNITY_6000_4_OR_NEWER
22
using System;
33
using System.Collections;
44
using NUnit.Framework;

Packages/com.unity.inputsystem/InputSystem/InputManager.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3705,8 +3705,10 @@ private unsafe void OnUpdate(InputUpdateType updateType, ref InputEventBuffer ev
37053705
//// same goes for events that someone may queue from a change monitor callback
37063706
InvokeAfterUpdateCallback(updateType);
37073707
//send pointer data to backend for OnMouseEvents
3708+
#if UNITY_6000_4_OR_NEWER
37083709
if (Pointer.current != null && gameIsPlaying)
37093710
NativeInputSystem.SetMouseEventsData(Pointer.current.press.isPressed, Pointer.current.press.wasPressedThisFrame, Pointer.current.position.x.value, Pointer.current.position.y.value);
3711+
#endif
37103712
m_CurrentUpdate = default;
37113713
}
37123714

0 commit comments

Comments
 (0)