From 8b33b08c29307ea3a333f25180f33d75e976166d Mon Sep 17 00:00:00 2001 From: Tobias Mansfield-Williams Date: Sat, 25 Apr 2020 13:25:00 +0200 Subject: [PATCH] Add const to InputEventMouseButton::get_factor (cherry picked from commit 982efb186404c35ac954ac5e14a83231ade8f13c) --- core/os/input_event.cpp | 2 +- core/os/input_event.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/core/os/input_event.cpp b/core/os/input_event.cpp index 9878dd41c4e..36dbca3a3fd 100644 --- a/core/os/input_event.cpp +++ b/core/os/input_event.cpp @@ -416,7 +416,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/os/input_event.h b/core/os/input_event.h index c6b04bcfa5c..0d228d9fe5d 100644 --- a/core/os/input_event.h +++ b/core/os/input_event.h @@ -328,7 +328,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;