diff --git a/src/input.cpp b/src/input.cpp index 6688fc5c..a9a38e2d 100644 --- a/src/input.cpp +++ b/src/input.cpp @@ -19,6 +19,9 @@ extern "C" { #include "thread_pool.h" #include "utility.h" +#include +#include + using namespace std::literals; namespace input { @@ -734,6 +737,9 @@ namespace input { state.buttonFlags |= platf::HOME; platf::gamepad(platf_input, gamepad.id, state); + // Sleep for a short time to allow the input to be detected + boost::this_thread::sleep_for(boost::chrono::milliseconds(100)); + // Release Home button state.buttonFlags &= ~platf::HOME; platf::gamepad(platf_input, gamepad.id, state);