Skip to content

Commit 7c5a80f

Browse files
committed
Removed completed TODO comments.
1 parent 469df4a commit 7c5a80f

File tree

2 files changed

+1
-10
lines changed

2 files changed

+1
-10
lines changed

XMapLib/KeyboardInputPoller.h

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff 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
}

XMapLib/XMapLib.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,6 @@ class GetExit : public sds::CPPThreadRunner<int>
3535
/* Entry Point */
3636
int 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;

0 commit comments

Comments
 (0)