Implemented new mouse support in engine