diff options
Diffstat (limited to 'core/os/main_loop.h')
-rw-r--r-- | core/os/main_loop.h | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/core/os/main_loop.h b/core/os/main_loop.h index 456a6be4d3..a33aeb9762 100644 --- a/core/os/main_loop.h +++ b/core/os/main_loop.h @@ -37,15 +37,15 @@ */ class MainLoop : public Object { - GDCLASS( MainLoop, Object ); + GDCLASS(MainLoop, Object); OBJ_CATEGORY("Main Loop"); Ref<Script> init_script; + protected: static void _bind_methods(); public: - enum { NOTIFICATION_WM_MOUSE_ENTER = 2, NOTIFICATION_WM_MOUSE_EXIT = 3, @@ -58,22 +58,20 @@ public: NOTIFICATION_TRANSLATION_CHANGED = 10, }; - virtual void input_event( const InputEvent& p_event ); - virtual void input_text( const String& p_text ); + virtual void input_event(const InputEvent &p_event); + virtual void input_text(const String &p_text); virtual void init(); virtual bool iteration(float p_time); virtual bool idle(float p_time); virtual void finish(); - virtual void drop_files(const Vector<String>& p_files,int p_from_screen=0); + virtual void drop_files(const Vector<String> &p_files, int p_from_screen = 0); - void set_init_script(const Ref<Script>& p_init_script); + void set_init_script(const Ref<Script> &p_init_script); MainLoop(); virtual ~MainLoop(); - - }; #endif |