Add top level stringToInput sender in header

This is the same for all platforms, so thers' no reason to duplicate it
in platform specific sections.
This commit is contained in:
Vasily
2019-05-25 18:49:42 +02:00
committed by username223
parent 0c7c339e3e
commit 9fa42842cd
+7
View File
@@ -9,3 +9,10 @@ enum class KeyStatus
};
void sendTokensAsInput( const std::vector<Token> tokens );
void sendStringAsInput( const std::string input )
{
const auto tokens = ParseKeyboardInputsToTokens( input );
const auto inputs = removeIncorrectTokens( tokens );
sendTokensAsInput( inputs );
}