summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTobias Mansfield-Williams <contact@tmwhere.com>2020-04-25 13:25:00 +0200
committerTobias Mansfield-Williams <contact@tmwhere.com>2020-04-25 13:25:00 +0200
commit982efb186404c35ac954ac5e14a83231ade8f13c (patch)
tree815b985ca0be2b3c07e9fcd5bceb326da1b2ff01
parent85ed2edc0685b7868813ee53d14964af9158eaf2 (diff)
Add const to InputEventMouseButton::get_factor
-rw-r--r--core/input/input_event.cpp2
-rw-r--r--core/input/input_event.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/core/input/input_event.cpp b/core/input/input_event.cpp
index 80219331c0..d18adb1983 100644
--- a/core/input/input_event.cpp
+++ b/core/input/input_event.cpp
@@ -477,7 +477,7 @@ void InputEventMouseButton::set_factor(float p_factor) {
factor = p_factor;
}
-float InputEventMouseButton::get_factor() {
+float InputEventMouseButton::get_factor() const {
return factor;
}
diff --git a/core/input/input_event.h b/core/input/input_event.h
index 2fdcdd0319..8774b3b1db 100644
--- a/core/input/input_event.h
+++ b/core/input/input_event.h
@@ -349,7 +349,7 @@ protected:
public:
void set_factor(float p_factor);
- float get_factor();
+ float get_factor() const;
void set_button_index(int p_index);
int get_button_index() const;