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