public ControlHandler() { cActions = new List<string>(); kbHandler = new KeyboardHandler(); wmHandler = new WiimoteHandler(); wiimoteIsConnected = wmHandler.CheckConnection(); }
public ControlHandler() { cActions = new List<string>(); kbHandler = new KeyboardHandler(); wmHandler = new WiimoteHandler(); wiimoteIsConnected = wmHandler.CheckConnection(); for (int i = 0; i < 10; i++) { keyBindings[i, 1] = kbHandler.GetKeyBind(i); keyBindings[i, 2] = wmHandler.getKeyBind(i); } }
private void Initialize() { LoadControls(); bg = new Background(graphics.GraphicsDevice, Content); count = 0; col = Color.White; promptColor = new Color(255, 222, 0); savePrompt = false; promptTimer = 0; fadeValue = 0; reset = false; resetTimer = 0; resetFadeValue = 0; canSave = true; saveTimer = 0; saveFadeValue = 0; wmHandler = new WiimoteHandler(); GameTime gameTime = new GameTime(); }