Allow keyboard binding in nogui/fullscreen mode (#1679)

* Allow keyboard binding in nogui/fullscreen mode
This commit is contained in:
Chris
2021-02-24 11:05:33 -05:00
committed by GitHub
parent 0d0a7eac1f
commit dd3d5dbd86
5 changed files with 55 additions and 1 deletions

View File

@ -36,6 +36,12 @@ void ControllerInterface::ClearHook()
m_event_intercept_callback = {};
}
bool ControllerInterface::HasHook()
{
std::unique_lock<std::mutex> lock(m_event_intercept_mutex);
return (bool)m_event_intercept_callback;
}
bool ControllerInterface::DoEventHook(Hook::Type type, int controller_index, int button_or_axis_number,
std::variant<float, std::string_view> value, bool track_history)
{