
class KeyManager {
	
	function init() {
		Mouse.addListener(this);
		Mouse.hide();
		//Key.addListener(this);

	}
	function onMouseMove() {
        _global.g.mainMgr.cursor.mouseMoved(_xmouse, _ymouse);
	}
	
	function onMouseDown() {
		_global.g.mainMgr.spaceShip.fireShot();
	}
/*
	function onKeyDown() {
		//trace("a key was pressed, "+Key.getCode());
		var keyCode:Number = Key.getCode();
		_global.g.mainMgr.cursor.keyPressed(keyCode);		
	}

	function processTicks() {
		if (Key.isDown(Key.SPACE)) {
			//trace("yes it's down");
		} else {
			//trace("nope");
		}
	}
*/

}