2017-07-12 07:11:29 +00:00
|
|
|
// Copyright 2017 Dolphin Emulator Project
|
|
|
|
// Licensed under GPLv2+
|
|
|
|
// Refer to the license.txt file included.
|
|
|
|
|
2017-12-07 23:40:37 +00:00
|
|
|
#include "DolphinWX/UINeedsControllerState.h"
|
|
|
|
|
2017-07-12 07:11:29 +00:00
|
|
|
#include <atomic>
|
|
|
|
|
|
|
|
static std::atomic<bool> s_needs_controller_state{false};
|
|
|
|
|
|
|
|
void SetUINeedsControllerState(bool needs_controller_state)
|
|
|
|
{
|
|
|
|
s_needs_controller_state = needs_controller_state;
|
|
|
|
}
|
|
|
|
|
|
|
|
bool GetUINeedsControllerState()
|
|
|
|
{
|
|
|
|
return s_needs_controller_state;
|
|
|
|
}
|