ParaEngine Events

Author:
LiXizhi
-- bind the event register example function helloworld.ReBindEventHandlers() NPL.load("(gl)script/ide/event_mapping.lua"); -- register mouse click event handler ParaScene.RegisterEvent("_mclick_helloworld_pick", ";helloworld.OnMouseClick();"); -- register mouse move event handler ParaScene.RegisterEvent("_mmove_helloworld_pick", ";helloworld.OnMouseMove();"); -- register mouse down event handler ParaScene.RegisterEvent("_mdown_helloworld_pick", ";helloworld.OnMouseDown();"); -- register mouse up event handler ParaScene.RegisterEvent("_mup_helloworld_pick", ";helloworld.OnMouseUp();"); -- register key event handler ParaScene.RegisterEvent("_k_helloworld_keydown", ";helloworld.OnKeyDownEvent();"); -- register networking event handler ParaScene.RegisterEvent("_n_helloworld_net", ";helloworld.OnNetworkEvent();"); -- register system event handler ParaScene.RegisterEvent("_s_helloworld_system", ";helloworld.OnSystemEvent();"); end


Generated on Mon Dec 1 14:34:41 2008 for NPL Scripting Reference for ParaEngine by  doxygen 1.5.2