Merge pull request #581 from Nihlus/correct-xml-comment

Corrected XML comments to reflect now removed JoystickAxis enumeration.
This commit is contained in:
Jarl Gullberg 2017-07-20 13:41:53 +02:00 committed by GitHub
commit ef96e7ab15

View file

@ -52,14 +52,14 @@ namespace OpenTK.Input
private JoystickHatState hat3; private JoystickHatState hat3;
/// <summary> /// <summary>
/// Gets a value between -1.0 and 1.0 representing the current offset of the specified <see cref="JoystickAxis"/>. /// Gets a value between -1.0 and 1.0 representing the current offset of the specified axis.
/// </summary> /// </summary>
/// <returns> /// <returns>
/// A value between -1.0 and 1.0 representing offset of the specified <see cref="JoystickAxis"/>. /// A value between -1.0 and 1.0 representing offset of the specified axis.
/// If the specified axis does not exist, then the return value is 0.0. Use <see cref="Joystick.GetCapabilities"/> /// If the specified axis does not exist, then the return value is 0.0. Use <see cref="Joystick.GetCapabilities"/>
/// to query the number of available axes. /// to query the number of available axes.
/// </returns> /// </returns>
/// <param name="axis">The <see cref="JoystickAxis"/> to query.</param> /// <param name="axis">The axis to query.</param>
public float GetAxis(int axis) public float GetAxis(int axis)
{ {
return GetAxisRaw(axis) * ConversionFactor; return GetAxisRaw(axis) * ConversionFactor;