Const qualifiers for Input::Event accessors

This commit is contained in:
Norman Feske 2012-01-17 23:06:02 +01:00
parent 5ca9f16ff0
commit 50b5a0d36d
1 changed files with 8 additions and 8 deletions

View File

@ -44,15 +44,15 @@ namespace Input {
/**
* Accessors
*/
Type type() { return _type; }
int keycode() { return _keycode; }
int ax() { return _ax; }
int ay() { return _ay; }
int rx() { return _rx; }
int ry() { return _ry; }
Type type() const { return _type; }
int keycode() const { return _keycode; }
int ax() const { return _ax; }
int ay() const { return _ay; }
int rx() const { return _rx; }
int ry() const { return _ry; }
bool is_absolute_motion() { return _type == MOTION && !_rx && !_ry; }
bool is_relative_motion() { return _type == MOTION && (_rx || _ry); }
bool is_absolute_motion() const { return _type == MOTION && !_rx && !_ry; }
bool is_relative_motion() const { return _type == MOTION && (_rx || _ry); }
};
}