Removal of InputEvent as built-in Variant type..

this might cause bugs I haven't found yet..
This commit is contained in:
Juan Linietsky
2017-05-20 12:38:03 -03:00
parent 93f9a83062
commit 5b3709d309
206 changed files with 9547 additions and 10167 deletions

View File

@@ -64,9 +64,9 @@ class TestMainLoop : public MainLoop {
protected:
public:
virtual void input_event(const InputEvent &p_event) {
virtual void input_event(const Ref<InputEvent> &p_event) {
if (p_event.type == InputEvent::KEY && p_event.key.pressed)
if (p_event->is_pressed())
quit = true;
}