mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-28 04:51:42 +00:00
Merge branch 'f12-fix' into 'master'
F12 fix See merge request STJr/SRB2!250
This commit is contained in:
commit
2a61e0bc63
1 changed files with 8 additions and 0 deletions
|
|
@ -658,6 +658,14 @@ static void Impl_HandleMouseButtonEvent(SDL_MouseButtonEvent evt, Uint32 type)
|
||||||
|
|
||||||
SDL_memset(&event, 0, sizeof(event_t));
|
SDL_memset(&event, 0, sizeof(event_t));
|
||||||
|
|
||||||
|
// Ignore the event if the mouse is not actually focused on the window.
|
||||||
|
// This can happen if you used the mouse to restore keyboard focus;
|
||||||
|
// this apparently makes a mouse button down event but not a mouse button up event,
|
||||||
|
// resulting in whatever key was pressed down getting "stuck" if we don't ignore it.
|
||||||
|
// -- Monster Iestyn (28/05/18)
|
||||||
|
if (SDL_GetMouseFocus() != window)
|
||||||
|
return;
|
||||||
|
|
||||||
/// \todo inputEvent.button.which
|
/// \todo inputEvent.button.which
|
||||||
if (USE_MOUSEINPUT)
|
if (USE_MOUSEINPUT)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue