File tree Expand file tree Collapse file tree 2 files changed +1
-10
lines changed
Expand file tree Collapse file tree 2 files changed +1
-10
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ namespace sds
1111 class KeyboardInputPoller : public CPPThreadRunner <std::vector<XINPUT_KEYSTROKE>>
1212 {
1313 KeyboardPlayerInfo m_local_player;
14+ const int EMPTY_COUNT = 5000 ;
1415 protected:
1516 // / <summary>
1617 // / Worker thread overriding the base pure virtual workThread.
@@ -19,13 +20,7 @@ namespace sds
1920 void workThread () override
2021 {
2122 this ->m_is_thread_running = true ;
22- // {
23- // //zero m_local_state before use
24- // lock first(m_state_mutex);
25- // memset(&m_local_state, 0, sizeof(m_local_state));
26- // }
2723 XINPUT_KEYSTROKE tempState = {};
28- const int EMPTY_COUNT = 5000 ;
2924 int currentCount = 0 ;
3025 while (!this ->m_is_stop_requested )
3126 {
@@ -46,8 +41,6 @@ namespace sds
4641 }
4742 }
4843 // std::this_thread::sleep_for(std::chrono::milliseconds(KeyboardSettings::THREAD_DELAY_POLLER));
49- // TODO implement a queue to ensure we aren't dropping keystrokes.
50-
5144 }
5245 this ->m_is_thread_running = false ;
5346 }
Original file line number Diff line number Diff line change @@ -35,8 +35,6 @@ class GetExit : public sds::CPPThreadRunner<int>
3535/* Entry Point */
3636int main ()
3737{
38- // TODO I believe there still exists a bug where the single thread that spams the most SendInput calls gets 100% of the calls sent
39- // and the other idles. An input queue thread is the way to go.
4038 using namespace sds ;
4139 using namespace sds ::Utilities;
4240 MousePlayerInfo player;
You can’t perform that action at this time.
0 commit comments