Added before forgotten condition to check if mouse look is enabled by default before auto-starting it.

This commit is contained in:
rampa3 2023-06-06 22:49:04 +02:00 committed by ksuprynowicz
parent 5f34d04596
commit 3daab28245

View file

@ -7,8 +7,10 @@ by rampa3 (https://github.com/rampa3) and vegaslon (https://github.com/vegaslon)
var oldMode;
var mouseLookEnabled = false;
mouseLookOn();
if (mouseLookEnabled) {
mouseLookOn();
}
Controller.keyPressEvent.connect(function(event) {
if (event.text === 'm') {