]> git.tdb.fi Git - libs/gui.git/blobdiff - source/inputdevice.cpp
Add a control layer suitable for games
[libs/gui.git] / source / inputdevice.cpp
index f0f9aac0a8a156f2b955ee9e012b20b9a8774890..e994d9fc3021052fbf29fd2bd7e785ce50de0ae6 100644 (file)
@@ -10,7 +10,7 @@ Distributed under the LGPL
 namespace Msp {
 namespace Input {
 
-bool Device::get_button_state(unsigned btn)
+bool Device::get_button_state(unsigned btn) const
 {
        if(btn>buttons.size())
                return false;
@@ -18,7 +18,7 @@ bool Device::get_button_state(unsigned btn)
        return buttons[btn];
 }
 
-float Device::get_axis_value(unsigned axis)
+float Device::get_axis_value(unsigned axis) const
 {
        if(axis>axes.size())
                return 0;