Keyboard Parse Fix (#467)

* fixed input sending bug not properly releasing keys

* updated to ovr 1.12.5

* added disable oculus api button experimental

* small refactor and fix float and bool bugs
This commit is contained in:
ykeara
2020-06-05 15:42:10 -05:00
committed by GitHub
parent 4757756d32
commit 82a0357748
21 changed files with 1297 additions and 161 deletions
+10 -2
View File
@@ -30,10 +30,14 @@ inline void sendTokensAsInput( const std::vector<Token> tokens )
if ( isModifier( token ) )
{
sendKeyPress( token, KeyStatus::Down );
if ( !noKeyUp )
if ( noKeyUp )
{
heldInputs.push_back( token );
}
else
{
sendKeyPress( token, KeyStatus::Up );
}
continue;
}
@@ -50,7 +54,11 @@ inline void sendTokensAsInput( const std::vector<Token> tokens )
if ( isLiteral( token ) )
{
sendKeyPress( token, KeyStatus::Down );
if ( !noKeyUp )
if ( noKeyUp )
{
heldInputs.push_back( token );
}
else
{
sendKeyPress( token, KeyStatus::Up );
}