Skip to content

Commit

Permalink
Code lint
Browse files Browse the repository at this point in the history
  • Loading branch information
kitswas committed Dec 15, 2023
1 parent 25aec03 commit 8643697
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
12 changes: 6 additions & 6 deletions src/simulation/keyboardSim.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -78,13 +78,13 @@ void typeUnicodeString(std::wstring str)
for (size_t i = 0; i < str.size(); i++)
{
// Press the key
inputs[2*i].type = INPUT_KEYBOARD;
inputs[2*i].ki.wScan = str[i];
inputs[2*i].ki.dwFlags = KEYEVENTF_UNICODE;
inputs[2 * i].type = INPUT_KEYBOARD;
inputs[2 * i].ki.wScan = str[i];
inputs[2 * i].ki.dwFlags = KEYEVENTF_UNICODE;
// Release the key
inputs[2*i+1].type = INPUT_KEYBOARD;
inputs[2*i+1].ki.wScan = str[i];
inputs[2*i+1].ki.dwFlags = KEYEVENTF_UNICODE | KEYEVENTF_KEYUP;
inputs[2 * i + 1].type = INPUT_KEYBOARD;
inputs[2 * i + 1].ki.wScan = str[i];
inputs[2 * i + 1].ki.dwFlags = KEYEVENTF_UNICODE | KEYEVENTF_KEYUP;
}
SendInput(str.size() * 2, inputs.data(), sizeof(INPUT));
}
2 changes: 1 addition & 1 deletion src/simulation/keyboardSim.hpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* @file keyboardSim.hpp
* @brief Simulates keyboard input in Windows.
*
*
* @note Do not include this file directly. Use @link simulate.hpp @endlink instead.
*/
#pragma once
Expand Down
2 changes: 1 addition & 1 deletion src/simulation/mouseSim.hpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* @file mouseSim.hpp
* @brief Simulates mouse input in Windows.
*
*
* @note Do not include this file directly. Use @link simulate.hpp @endlink instead.
*/
#pragma once
Expand Down

0 comments on commit 8643697

Please sign in to comment.