Browse Source

Add const to InputEventMouseButton::get_factor

(cherry picked from commit 982efb186404c35ac954ac5e14a83231ade8f13c)
Tobias Mansfield-Williams 5 years ago
parent
commit
8b33b08c29
2 changed files with 2 additions and 2 deletions
  1. 1 1
      core/os/input_event.cpp
  2. 1 1
      core/os/input_event.h

+ 1 - 1
core/os/input_event.cpp

@@ -416,7 +416,7 @@ void InputEventMouseButton::set_factor(float p_factor) {
 	factor = p_factor;
 	factor = p_factor;
 }
 }
 
 
-float InputEventMouseButton::get_factor() {
+float InputEventMouseButton::get_factor() const {
 
 
 	return factor;
 	return factor;
 }
 }

+ 1 - 1
core/os/input_event.h

@@ -328,7 +328,7 @@ protected:
 
 
 public:
 public:
 	void set_factor(float p_factor);
 	void set_factor(float p_factor);
-	float get_factor();
+	float get_factor() const;
 
 
 	void set_button_index(int p_index);
 	void set_button_index(int p_index);
 	int get_button_index() const;
 	int get_button_index() const;