From 50b5a0d36d5874bdce3b1bf320ad4bebf5d3f988 Mon Sep 17 00:00:00 2001 From: Norman Feske Date: Tue, 17 Jan 2012 23:06:02 +0100 Subject: [PATCH] Const qualifiers for Input::Event accessors --- os/include/input/event.h | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/os/include/input/event.h b/os/include/input/event.h index 280a868059..a1e8e507ca 100644 --- a/os/include/input/event.h +++ b/os/include/input/event.h @@ -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); } }; }