Skip to content

Commit

Permalink
Switch to std::thread
Browse files Browse the repository at this point in the history
  • Loading branch information
Era-Dorta committed Jun 12, 2023
1 parent 9d4c459 commit b3818d2
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/input.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ extern "C" {

#include <bitset>
#include <chrono>
#include <thread>
#include <unordered_map>

#include "config.h"
Expand All @@ -20,8 +21,6 @@ extern "C" {
#include "thread_pool.h"
#include "utility.h"

#include <boost/thread/thread.hpp>

using namespace std::literals;
namespace input {

Expand Down Expand Up @@ -738,7 +737,7 @@ namespace input {
platf::gamepad(platf_input, gamepad.id, state);

// Sleep for a short time to allow the input to be detected
boost::this_thread::sleep_for(std::chrono::milliseconds(100));
std::this_thread::sleep_for(std::chrono::milliseconds(100));

// Release Home button
state.buttonFlags &= ~platf::HOME;
Expand Down

0 comments on commit b3818d2

Please sign in to comment.