Remove inconsistent use of 'is_' prefix

Fixes #1963
This commit is contained in:
Norman Feske
2016-05-11 18:21:47 +02:00
committed by Christian Helmuth
parent 15141f3ca7
commit 807be83b1b
225 changed files with 876 additions and 705 deletions

View File

@ -75,9 +75,16 @@ class Input::Event
return _type == PRESS || _type == RELEASE ? (Keycode)_code : KEY_UNKNOWN;
}
bool is_absolute_motion() const { return _type == MOTION && !_rx && !_ry; }
bool is_relative_motion() const { return _type == MOTION && (_rx || _ry); }
bool is_touch_release() const { return _type == TOUCH && (_rx == -1) && (_ry == -1); }
bool absolute_motion() const { return _type == MOTION && !_rx && !_ry; }
bool relative_motion() const { return _type == MOTION && (_rx || _ry); }
bool touch_release() const { return _type == TOUCH && (_rx == -1) && (_ry == -1); }
/*
* \deprecated use methods without the 'is_' prefix instead
*/
bool is_absolute_motion() const { return absolute_motion(); }
bool is_relative_motion() const { return relative_motion(); }
bool is_touch_release() const { return touch_release(); }
static Event create_touch_event(int ax, int ay, int id, bool last = false)
{