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:
@@ -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 );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user