Skip to content

Commit

Permalink
[Windows] fix #1221
Browse files Browse the repository at this point in the history
  • Loading branch information
Reputeless committed Apr 25, 2024
1 parent 832fbe3 commit db4b25a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,8 @@ namespace s3d

Array<KeyEvent> CKeyboard::getEvents() const noexcept
{
std::lock_guard lock{ m_eventMutex };

return m_events;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ namespace s3d

//////
//
std::mutex m_eventMutex;
mutable std::mutex m_eventMutex;

uint32 m_eventIndex = 0;

Expand Down

0 comments on commit db4b25a

Please sign in to comment.