custom keybinds multiple keypress fix. [add backslash to Parser] (#513)
* 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 * added nokeyup events to modifier keys when read in, and adjusted token send to have proper logic * fixed literal held issue * added backslash * fixed sender token parser * updated version string to dev whoops * added backslash to documentation for keyboard input
This commit is contained in:
@@ -164,6 +164,10 @@ std::optional<Token> checkIfLegalCapitalLiteral( std::string input ) noexcept
|
||||
{
|
||||
return Token::KEY_ENTER;
|
||||
}
|
||||
if ( input == "BACKSLASH" )
|
||||
{
|
||||
return Token::KEY_BACKSLASH;
|
||||
}
|
||||
|
||||
return std::nullopt;
|
||||
}
|
||||
@@ -182,6 +186,7 @@ std::vector<Token>
|
||||
}
|
||||
if ( const auto c = getModifier( *ch ); c.has_value() )
|
||||
{
|
||||
tokens.push_back( Token::TOKEN_NO_KEYUP_NEXT );
|
||||
tokens.push_back( *c );
|
||||
continue;
|
||||
}
|
||||
@@ -517,6 +522,8 @@ bool isLiteral( const Token token ) noexcept
|
||||
return true;
|
||||
case Token::KEY_ENTER:
|
||||
return true;
|
||||
case Token::KEY_BACKSLASH:
|
||||
return true;
|
||||
|
||||
default:
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user