Fix virtual methods in InputEventKey.

This fixes a lot of problems with key input in the engine.
This commit is contained in:
Andreas Haas 2017-05-25 21:54:18 +02:00
parent 7c89e00d46
commit 3744d9fd55
No known key found for this signature in database
GPG key ID: B5FFAE1B65FBD2E1
2 changed files with 3 additions and 3 deletions

View file

@ -229,7 +229,7 @@ void InputEventKey::set_pressed(bool p_pressed) {
pressed = p_pressed;
}
bool InputEventKey::is_pressed() {
bool InputEventKey::is_pressed() const {
return pressed;
}

View file

@ -229,7 +229,7 @@ protected:
public:
void set_pressed(bool p_pressed);
bool is_pressed();
virtual bool is_pressed() const;
void set_scancode(uint32_t p_scancode);
uint32_t get_scancode() const;
@ -238,7 +238,7 @@ public:
uint32_t get_unicode() const;
void set_echo(bool p_enable);
bool is_echo() const;
virtual bool is_echo() const;
uint32_t get_scancode_with_modifiers() const;