Builder to JS mouse declaration change needed

In order to run experiment in pavlovia, I had to change
mouse = new psychoJS.eventManager.Mouse({“win”: psychoJS.window});
to
mouse = new core.Mouse({win: psychoJS.window});

Why didn’t you use a mouse component?

I often set up a mouse component called mouse in the first routine (it can be one that has a short duration and doesn’t end the routine). Later routines can then use the mouse object in code components.

mouse = new psychoJS.eventManager.Mouse({“win”: psychoJS.window}); Gave me a firefox browser error. mouse = new core.Mouse({win: psychoJS.window}); fixed the problem.