Skip to content

Commit be5efa6

Browse files
committed
add actions from PWA
1 parent 7206f55 commit be5efa6

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

Assets/Tests/InputSystem/CorePerformanceTests.cs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1216,6 +1216,18 @@ public IEnumerator Performance_MeasureInputSystemFrameTimeWithProfilerMarkers_To
12161216
var touchscreen = InputSystem.AddDevice<Touchscreen>();
12171217
EnhancedTouchSupport.Enable();
12181218

1219+
var clickAction = InputSystem.actions.FindAction("Click");
1220+
var pointAction = InputSystem.actions.FindAction("Point");
1221+
1222+
int performedCallCount = 0;
1223+
1224+
clickAction.performed += context => {
1225+
performedCallCount++;
1226+
};
1227+
1228+
pointAction.performed += context => {
1229+
performedCallCount++;
1230+
};
12191231

12201232
using (Measure.ProfilerMarkers(allInputSystemProfilerMarkers))
12211233
{

0 commit comments

Comments
 (0)