mirror of
https://github.com/genodelabs/genode.git
synced 2025-05-05 18:18:34 +00:00
Const qualifiers for Input::Event accessors
This commit is contained in:
parent
5ca9f16ff0
commit
50b5a0d36d
@ -44,15 +44,15 @@ namespace Input {
|
|||||||
/**
|
/**
|
||||||
* Accessors
|
* Accessors
|
||||||
*/
|
*/
|
||||||
Type type() { return _type; }
|
Type type() const { return _type; }
|
||||||
int keycode() { return _keycode; }
|
int keycode() const { return _keycode; }
|
||||||
int ax() { return _ax; }
|
int ax() const { return _ax; }
|
||||||
int ay() { return _ay; }
|
int ay() const { return _ay; }
|
||||||
int rx() { return _rx; }
|
int rx() const { return _rx; }
|
||||||
int ry() { return _ry; }
|
int ry() const { return _ry; }
|
||||||
|
|
||||||
bool is_absolute_motion() { return _type == MOTION && !_rx && !_ry; }
|
bool is_absolute_motion() const { return _type == MOTION && !_rx && !_ry; }
|
||||||
bool is_relative_motion() { return _type == MOTION && (_rx || _ry); }
|
bool is_relative_motion() const { return _type == MOTION && (_rx || _ry); }
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user