mirror of
https://github.com/space-wizards/RobustToolbox.git
synced 2026-02-15 03:30:53 +01:00
* Use GLFW instead of OpenTK windows * Seems to work pretty well now. * Fix stackalloc issue on Framework. * Add GLFW project to sln. * Fix package downgrade. * Fix SLN more. * Please work. * Fix C# version error.
28 lines
754 B
C#
28 lines
754 B
C#
//
|
|
// GamepadState.cs
|
|
//
|
|
// Copyright (C) 2019 OpenTK
|
|
//
|
|
// This software may be modified and distributed under the terms
|
|
// of the MIT license. See the LICENSE file for details.
|
|
//
|
|
|
|
namespace OpenToolkit.GraphicsLibraryFramework
|
|
{
|
|
/// <summary>
|
|
/// This describes the input state of a gamepad.
|
|
/// </summary>
|
|
public struct GamepadState
|
|
{
|
|
/// <summary>
|
|
/// State of each of the 15 gamepad buttons, equal to <see cref="InputAction.Press"/> or <see cref="InputAction.Release"/>.
|
|
/// </summary>
|
|
public unsafe fixed byte Buttons[15];
|
|
|
|
/// <summary>
|
|
/// State of each of the 6 gamepad axes, ranging from -1.0 to 1.0.
|
|
/// </summary>
|
|
public unsafe fixed float Axes[6];
|
|
}
|
|
}
|