change type of MouseDoubleClick from int to bool

This commit is contained in:
Robert Müller 2022-01-16 12:18:23 +01:00
parent e3b20696cc
commit c495d4b327
3 changed files with 5 additions and 5 deletions

View file

@ -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()

View file

@ -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);

View file

@ -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;