//-------------------------------------------------------------------- private void SetAxisMessage(TextItem textItem, string axisName, float axisValue) { if (textItem != null) { textItem.SetText(axisName + ": " + axisValue.ToString("F3")); textItem.Highlight(); } }
private void OnSourceChanged(InputSourceGamepad arg1, InputSourceGamepadBase newSource) { if (newSource != null) { m_SourceName.SetText(newSource.GetType().ToString()); } else { m_SourceName.SetText("No Gamepad Source"); } m_SourceName.Highlight(); }
private void OnSelectChanged() { var inputSource = InputShellMap.Instance.inputSwitchLogic.CurrentTargetingSource; var type = inputSource.GetType(); var message = inputSource.IsSelectPressed() ? "Pressed" : "Released"; AddMessage(string.Format("Select {0}", message)); if (type != previousInputSource) { InputSourceText.SetText(string.Format("Source: {0}", type)); InputSourceText.Highlight(); previousInputSource = type; } }
private void SetHandMovingLabelText(string message) { HandMovingLabel.SetText(message); HandMovingLabel.Highlight(); }