mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-18 21:27:56 +00:00
Const qualifiers for Input::Event accessors
This commit is contained in:
parent
5ca9f16ff0
commit
50b5a0d36d
@ -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); }
|
||||
};
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user