
function Screen(sys){

	var launch;
this.launch=false;

this.sys=sys;


this.runService=function(){
	this.launch=true;

	}
this.stopService=function(){
	this.launch=false;
	}	


// touche clavier enfoncé
this.resize= function(){
	
if (window.innerWidth) {
		this.sys.desk.s.setW(window.innerWidth);
		}
else{

	if (document.body && document.body.offsetWidth)  {
		this.sys.desk.s.setW(document.body.offsetWidth);
		
		}
		}
		
if (window.innerHeight) {	
		this.sys.desk.s.setH(window.innerHeight);
		}
else{

	if (document.body && document.body.offsetHeight) {
		this.sys.desk.s.setH(document.body.offsetHeight);
		}
		}		

}
	
	

}
