Removed static members and using lambda & userdata object for mouse move