@@ -19,6 +19,9 @@ extern "C" {
|
|||||||
#include "thread_pool.h"
|
#include "thread_pool.h"
|
||||||
#include "utility.h"
|
#include "utility.h"
|
||||||
|
|
||||||
|
#include <boost/chrono.hpp>
|
||||||
|
#include <boost/thread/thread.hpp>
|
||||||
|
|
||||||
using namespace std::literals;
|
using namespace std::literals;
|
||||||
namespace input {
|
namespace input {
|
||||||
|
|
||||||
@@ -734,6 +737,9 @@ namespace input {
|
|||||||
state.buttonFlags |= platf::HOME;
|
state.buttonFlags |= platf::HOME;
|
||||||
platf::gamepad(platf_input, gamepad.id, state);
|
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
|
// Release Home button
|
||||||
state.buttonFlags &= ~platf::HOME;
|
state.buttonFlags &= ~platf::HOME;
|
||||||
platf::gamepad(platf_input, gamepad.id, state);
|
platf::gamepad(platf_input, gamepad.id, state);
|
||||||
|
|||||||
Reference in New Issue
Block a user