mirror of
https://github.com/logsol/chuck.js.git
synced 2026-05-11 10:37:34 +00:00
Makes singleton variable name of PointerLockManager lowercase
When we require a singleton, its instance name should be named by lowercase, since it is not a class. Relates to #128
This commit is contained in:
parent
3cb2e39a18
commit
ce01c8888e
5 changed files with 11 additions and 11 deletions
|
|
@ -6,7 +6,7 @@ define([
|
||||||
"Game/Client/PointerLockManager"
|
"Game/Client/PointerLockManager"
|
||||||
],
|
],
|
||||||
|
|
||||||
function (Parent, nc, KeyboardAndMouse, Gamepad, PointerLockManager) {
|
function (Parent, nc, KeyboardAndMouse, Gamepad, pointerLockManager) {
|
||||||
|
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
|
|
@ -115,7 +115,7 @@ function (Parent, nc, KeyboardAndMouse, Gamepad, PointerLockManager) {
|
||||||
* and is not in between games
|
* and is not in between games
|
||||||
*/
|
*/
|
||||||
PlayerController.prototype.isPlayerInputAllowed = function() {
|
PlayerController.prototype.isPlayerInputAllowed = function() {
|
||||||
return PointerLockManager.isLocked()
|
return pointerLockManager.isLocked()
|
||||||
&& Parent.prototype.isPlayerInputAllowed.call(this);
|
&& Parent.prototype.isPlayerInputAllowed.call(this);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,7 @@ define([
|
||||||
"Lib/Utilities/Exception"
|
"Lib/Utilities/Exception"
|
||||||
],
|
],
|
||||||
|
|
||||||
function (Parent, Box2D, PhysicsEngine, ViewManager, PlayerController, nc, requestAnimFrame, Settings, GameObject, Doll, domController, ProtocolHelper, Me, AudioPlayer, PointerLockManager, Assert, Exception) {
|
function (Parent, Box2D, PhysicsEngine, ViewManager, PlayerController, nc, requestAnimFrame, Settings, GameObject, Doll, domController, ProtocolHelper, Me, AudioPlayer, pointerLockManager, Assert, Exception) {
|
||||||
|
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
|
|
@ -244,7 +244,7 @@ function (Parent, Box2D, PhysicsEngine, ViewManager, PlayerController, nc, reque
|
||||||
};
|
};
|
||||||
|
|
||||||
GameController.prototype.onLevelLoaded = function () {
|
GameController.prototype.onLevelLoaded = function () {
|
||||||
PointerLockManager.update(null, {start:true});
|
pointerLockManager.update(null, {start:true});
|
||||||
};
|
};
|
||||||
|
|
||||||
GameController.prototype.toggleGameStats = function(show) {
|
GameController.prototype.toggleGameStats = function(show) {
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@ define([
|
||||||
"Game/Client/PointerLockManager"
|
"Game/Client/PointerLockManager"
|
||||||
],
|
],
|
||||||
|
|
||||||
function (Settings, nc, Screenfull, Graph, PointerLockManager) {
|
function (Settings, nc, Screenfull, Graph, pointerLockManager) {
|
||||||
|
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
|
|
@ -137,7 +137,7 @@ function (Settings, nc, Screenfull, Graph, PointerLockManager) {
|
||||||
button.innerHTML = "Fullscreen";
|
button.innerHTML = "Fullscreen";
|
||||||
button.onclick = function() {
|
button.onclick = function() {
|
||||||
if(Screenfull.enabled) {
|
if(Screenfull.enabled) {
|
||||||
PointerLockManager.request();
|
pointerLockManager.request();
|
||||||
Screenfull.request(self.canvas);
|
Screenfull.request(self.canvas);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,7 @@ define([
|
||||||
"Game/Client/View/Pixi/Layers/Messages"
|
"Game/Client/View/Pixi/Layers/Messages"
|
||||||
],
|
],
|
||||||
|
|
||||||
function (Parent, domController, PIXI, Settings, nc, Exception, GameStats, LayerManager, Ghost, Swiper, PointerLockManager, Debug, Messages) {
|
function (Parent, domController, PIXI, Settings, nc, Exception, GameStats, LayerManager, Ghost, Swiper, pointerLockManager, Debug, Messages) {
|
||||||
|
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
|
|
@ -231,7 +231,7 @@ function (Parent, domController, PIXI, Settings, nc, Exception, GameStats, Layer
|
||||||
this.renderer.resize(window.innerWidth, window.innerHeight);
|
this.renderer.resize(window.innerWidth, window.innerHeight);
|
||||||
this.currentZoom = window.innerWidth / 600;
|
this.currentZoom = window.innerWidth / 600;
|
||||||
|
|
||||||
PointerLockManager.update(null, {}); // only to reposition clickToEnable text
|
pointerLockManager.update(null, {}); // only to reposition clickToEnable text
|
||||||
};
|
};
|
||||||
|
|
||||||
PixiView.prototype.initLoader = function() {
|
PixiView.prototype.initLoader = function() {
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@ define([
|
||||||
"Lib/Utilities/QuerySelector"
|
"Lib/Utilities/QuerySelector"
|
||||||
],
|
],
|
||||||
|
|
||||||
function (Settings, ColorConverter, Exception, PointerLockManager, Qs) {
|
function (Settings, ColorConverter, Exception, pointerLockManager, Qs) {
|
||||||
|
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
|
|
@ -404,7 +404,7 @@ function (Settings, ColorConverter, Exception, PointerLockManager, Qs) {
|
||||||
clearInterval(instance.channelDestructionTimeout);
|
clearInterval(instance.channelDestructionTimeout);
|
||||||
}
|
}
|
||||||
|
|
||||||
PointerLockManager.request();
|
pointerLockManager.request();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -427,7 +427,7 @@ function (Settings, ColorConverter, Exception, PointerLockManager, Qs) {
|
||||||
}
|
}
|
||||||
|
|
||||||
Qs.$("#canvas").onclick = function(){
|
Qs.$("#canvas").onclick = function(){
|
||||||
PointerLockManager.request();
|
pointerLockManager.request();
|
||||||
};
|
};
|
||||||
|
|
||||||
return Menu;
|
return Menu;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue