Removal of InputEvent as built-in Variant type..
this might cause bugs I haven't found yet..
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user