public void WaitSignal() { if (Keyboard1KeyCodeSet.AnyKey) { inputRegistered = true; keySet = new Keyboard1KeyCodeSet(); } // else if (JoyStickKeyCodeSet.AnyKey) { // inputRegistered = true; // keySet = new JoyStickKeyCodeSet(); // } }
public void WaitSignal() { if (Keyboard1KeyCodeSet.AnyKey) { if (!takenInput.Contains(InputType.Keyboard1)) { takenInput.Add(InputType.Keyboard1); inputType = InputType.Keyboard1; keySet = new Keyboard1KeyCodeSet(); return; } } else if (Keyboard2KeyCodeSet.AnyKey) { if (!takenInput.Contains(InputType.Keyboard2)) { takenInput.Add(InputType.Keyboard2); inputType = InputType.Keyboard2; keySet = new Keyboard2KeyCodeSet(); return; } } else if (JoyStickKeyCodeSet.AnyKey) { if (!takenInput.Contains(InputType.JoyStick)) { takenInput.Add(InputType.JoyStick); inputType = InputType.JoyStick; keySet = new JoyStickKeyCodeSet(); return; } } }