Keyboard Press Feature and Version String Updated (#464)

* added two new keyboard press actions

* added todos to overlay controller for new actions

* added settings for keyboard press and default to f10

* added logic, fixed default value

* added action alias

* fixed center marker rotation count

* updated version strings

* fixed Trigger Condition

* removed literal limitation (character input)

* updated version string

* fixed white space issues
This commit is contained in:
ykeara
2020-06-04 11:17:58 -05:00
committed by GitHub
parent e1e4933fb3
commit 8c2af7477c
9 changed files with 97 additions and 3 deletions
+20
View File
@@ -75,6 +75,26 @@ inline void sendTokensAsInput( const std::vector<Token> tokens )
shutdownOsSystems();
}
inline void sendTokenPress( const Token token, KeyStatus event = KeyStatus::Up )
{
initOsSystems();
sendKeyPress( token, event );
shutdownOsSystems();
}
inline void sendFirstCharAsInput( const std::string inputstring,
KeyStatus event )
{
const auto tokens = ParseKeyboardInputsToTokens( inputstring );
const auto inputs = removeIncorrectTokens( tokens );
if ( !tokens.empty() )
{
sendTokenPress( inputs.front(), event );
}
}
inline void sendStringAsInput( const std::string input )
{
const auto tokens = ParseKeyboardInputsToTokens( input );