From 9fa42842cd011410ca25ce7f53a17b158f0464c2 Mon Sep 17 00:00:00 2001 From: Vasily Date: Sat, 27 Apr 2019 12:22:47 +0200 Subject: [PATCH] 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. --- src/keyboard_input/input_sender.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/keyboard_input/input_sender.h b/src/keyboard_input/input_sender.h index de851ca..8ccd801 100644 --- a/src/keyboard_input/input_sender.h +++ b/src/keyboard_input/input_sender.h @@ -9,3 +9,10 @@ enum class KeyStatus }; void sendTokensAsInput( const std::vector tokens ); + +void sendStringAsInput( const std::string input ) +{ + const auto tokens = ParseKeyboardInputsToTokens( input ); + const auto inputs = removeIncorrectTokens( tokens ); + sendTokensAsInput( inputs ); +}