Allow keyboard binding in nogui/fullscreen mode (#1679)
* Allow keyboard binding in nogui/fullscreen mode
This commit is contained in:
parent
0d0a7eac1f
commit
dd3d5dbd86
5 changed files with 55 additions and 1 deletions
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue