/// <summary> /// Updates keyboard/joystick state /// </summary> public void Update() { JoyStick1.Update(); JoyStick2.Update(); m_joystick1_state = JoyStick1.StateByte; m_joystick2_state = JoyStick2.StateByte; }
public void SettingsChanged(ref bool in_restart_tvc) { SetupInputSettings settings = SettingsFile.Default.GetSettings <SetupInputSettings>(); // create key mapping table LoadKeyMappingTableFromResource("YATE.Resources.DefaultKeyMapping.txt"); // Joystick1 init JoyStick1.SetSettings(settings.Joystick1); JoyStick2.SetSettings(settings.Joystick2); // clear pressed key table m_pressed_keys = new Key[PressedKeyCount]; for (int i = 0; i < PressedKeyCount; i++) { m_pressed_keys[i] = Key.None; } }