mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
end double mouse click state when doing a new single click.
This commit is contained in:
parent
bbc194ce2a
commit
e3b20696cc
|
@ -329,8 +329,13 @@ int CInput::Update()
|
|||
Scancode = KEY_MOUSE_8; // ignore_convention
|
||||
if(Event.button.button == 9)
|
||||
Scancode = KEY_MOUSE_9; // ignore_convention
|
||||
if(Event.button.clicks % 2 == 0 && Event.button.button == SDL_BUTTON_LEFT)
|
||||
m_MouseDoubleClick = true;
|
||||
if(Event.button.button == SDL_BUTTON_LEFT)
|
||||
{
|
||||
if(Event.button.clicks % 2 == 0)
|
||||
m_MouseDoubleClick = true;
|
||||
if(Event.button.clicks == 1)
|
||||
m_MouseDoubleClick = false;
|
||||
}
|
||||
break;
|
||||
|
||||
case SDL_MOUSEWHEEL:
|
||||
|
|
Loading…
Reference in a new issue