hacked osx integ key tests to stop COSXKeyStateTests.fakeAndPoll_charKeyAndModifier from failing

This commit is contained in:
Nick Bolton 2013-08-30 17:05:52 +00:00
parent 024f66e25e
commit 93b593f13e
1 changed files with 2 additions and 2 deletions

View File

@ -97,8 +97,8 @@ TEST_F(COSXKeyStateTests, fakeAndPoll_charKeyAndModifier)
bool bool
COSXKeyStateTests::isKeyPressed(const COSXKeyState& keyState, KeyButton button) COSXKeyStateTests::isKeyPressed(const COSXKeyState& keyState, KeyButton button)
{ {
// allow os to realize key state changes. // HACK: allow os to realize key state changes.
ARCH->sleep(.01); ARCH->sleep(1);
IKeyState::KeyButtonSet pressed; IKeyState::KeyButtonSet pressed;
keyState.pollPressedKeys(pressed); keyState.pollPressedKeys(pressed);