mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
change type of MouseDoubleClick from int to bool
This commit is contained in:
parent
e3b20696cc
commit
c495d4b327
|
@ -123,14 +123,14 @@ bool CInput::NativeMousePressed(int index)
|
|||
return (i & SDL_BUTTON(index)) != 0;
|
||||
}
|
||||
|
||||
int CInput::MouseDoubleClick()
|
||||
bool CInput::MouseDoubleClick()
|
||||
{
|
||||
if(m_MouseDoubleClick)
|
||||
{
|
||||
m_MouseDoubleClick = false;
|
||||
return 1;
|
||||
return true;
|
||||
}
|
||||
return 0;
|
||||
return false;
|
||||
}
|
||||
|
||||
const char *CInput::GetClipboardText()
|
||||
|
|
|
@ -57,7 +57,7 @@ public:
|
|||
virtual void MouseModeRelative();
|
||||
virtual void NativeMousePos(int *x, int *y) const;
|
||||
virtual bool NativeMousePressed(int index);
|
||||
virtual int MouseDoubleClick();
|
||||
virtual bool MouseDoubleClick();
|
||||
virtual const char *GetClipboardText();
|
||||
virtual void SetClipboardText(const char *Text);
|
||||
|
||||
|
|
|
@ -73,7 +73,7 @@ public:
|
|||
virtual bool NativeMousePressed(int index) = 0;
|
||||
virtual void MouseModeRelative() = 0;
|
||||
virtual void MouseModeAbsolute() = 0;
|
||||
virtual int MouseDoubleClick() = 0;
|
||||
virtual bool MouseDoubleClick() = 0;
|
||||
virtual const char *GetClipboardText() = 0;
|
||||
virtual void SetClipboardText(const char *Text) = 0;
|
||||
|
||||
|
|
Loading…
Reference in a new issue