diff options
author | Juan Linietsky <reduzio@gmail.com> | 2014-04-10 00:18:27 -0300 |
---|---|---|
committer | Juan Linietsky <reduzio@gmail.com> | 2014-04-10 00:18:27 -0300 |
commit | 7ea3e8267afaf626256c84a9a3dc61e2954fc6a2 (patch) | |
tree | 0aa7588918b814d1781fc94e8b518c7095a0bab7 /scene/main/scene_main_loop.cpp | |
parent | b4969373b3475799d6b24cdffeda4659c37f0b8a (diff) |
-Fixed a few bugs in Viewport
-Made a few demos using Viewport to show it's true power!
-Fixed some start-up error messages.
Diffstat (limited to 'scene/main/scene_main_loop.cpp')
-rw-r--r-- | scene/main/scene_main_loop.cpp | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/scene/main/scene_main_loop.cpp b/scene/main/scene_main_loop.cpp index cb3188b3b4..32bc4b3e16 100644 --- a/scene/main/scene_main_loop.cpp +++ b/scene/main/scene_main_loop.cpp @@ -340,7 +340,7 @@ void SceneMainLoop::input_event( const InputEvent& p_event ) { InputEvent ev = p_event; - +#if 0 switch(ev.type) { case InputEvent::MOUSE_BUTTON: { @@ -391,15 +391,12 @@ void SceneMainLoop::input_event( const InputEvent& p_event ) { } break; } - +#endif MainLoop::input_event(p_event); - +#if 0 _call_input_pause("input","_input",ev); - - - call_group(GROUP_CALL_REVERSE|GROUP_CALL_REALTIME|GROUP_CALL_MULIILEVEL,"_gui_input","_gui_input",p_event); //special one for GUI, as controls use their own process check //call_group(GROUP_CALL_REVERSE|GROUP_CALL_REALTIME|GROUP_CALL_MULIILEVEL,"input","_input",ev); @@ -416,7 +413,11 @@ void SceneMainLoop::input_event( const InputEvent& p_event ) { //} //transform for the rest +#else + + call_group(GROUP_CALL_REALTIME,"_viewports","_vp_input",p_event); //special one for GUI, as controls use their own process check +#endif if (ScriptDebugger::get_singleton() && ScriptDebugger::get_singleton()->is_remote() && ev.type==InputEvent::KEY && ev.key.pressed && !ev.key.echo && ev.key.scancode==KEY_F8) { ScriptDebugger::get_singleton()->request_quit(); @@ -429,13 +430,19 @@ void SceneMainLoop::input_event( const InputEvent& p_event ) { root_lock++; if (!input_handled) { + +#if 0 _call_input_pause("unhandled_input","_unhandled_input",ev); //call_group(GROUP_CALL_REVERSE|GROUP_CALL_REALTIME|GROUP_CALL_MULIILEVEL,"unhandled_input","_unhandled_input",ev); if (!input_handled && ev.type==InputEvent::KEY) { _call_input_pause("unhandled_key_input","_unhandled_key_input",ev); //call_group(GROUP_CALL_REVERSE|GROUP_CALL_REALTIME|GROUP_CALL_MULIILEVEL,"unhandled_key_input","_unhandled_key_input",ev); } +#else + + call_group(GROUP_CALL_REALTIME,"_viewports","_vp_unhandled_input",p_event); //special one for GUI, as controls use their own process check +#endif input_handled=true; _flush_ugc(); root_lock--; |