mirror of
https://github.com/debauchee/barrier.git
synced 2026-02-09 21:25:55 +08:00
hacked osx integ key tests to stop COSXKeyStateTests.fakeAndPoll_charKeyAndModifier from failing
This commit is contained in:
@@ -97,8 +97,8 @@ TEST_F(COSXKeyStateTests, fakeAndPoll_charKeyAndModifier)
|
||||
bool
|
||||
COSXKeyStateTests::isKeyPressed(const COSXKeyState& keyState, KeyButton button)
|
||||
{
|
||||
// allow os to realize key state changes.
|
||||
ARCH->sleep(.01);
|
||||
// HACK: allow os to realize key state changes.
|
||||
ARCH->sleep(1);
|
||||
|
||||
IKeyState::KeyButtonSet pressed;
|
||||
keyState.pollPressedKeys(pressed);
|
||||
|
||||
Reference in New Issue
Block a user