Skip to content

Commit a20368e

Browse files
committed
Test that rumble stops on PS4/PS5
1 parent 538fff9 commit a20368e

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

WinUHidUnitTests/PS4.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -381,5 +381,10 @@ TEST(PS4, RumbleEffects) {
381381
EXPECT_CB_VALUE(rumbleState, MAKE_RUMBLE_VALUE(0, i));
382382
}
383383

384+
//
385+
// Rumble will cease after 100ms
386+
//
387+
EXPECT_CB_VALUE(rumbleState, MAKE_RUMBLE_VALUE(0, 0));
388+
384389
WinUHidPS4Destroy(gamepad);
385390
}

WinUHidUnitTests/PS5.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -467,5 +467,10 @@ TEST(PS5, RumbleEffects) {
467467
EXPECT_CB_VALUE(rumbleState, MAKE_RUMBLE_VALUE(0, i));
468468
}
469469

470+
//
471+
// Rumble will cease after 100ms
472+
//
473+
EXPECT_CB_VALUE(rumbleState, MAKE_RUMBLE_VALUE(0, 0));
474+
470475
WinUHidPS5Destroy(gamepad);
471476
}

0 commit comments

Comments
 (0)