//
// GamePadButton.cs
//
// Author:
// robert <${AuthorEmail}>
//
// Copyright (c) 2012 robert
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in
// all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
using System;
namespace OpenTK.Input
{
///
/// Enumerates available buttons for a GamePad device.
///
[Flags]
public enum Buttons
{
///
/// DPad up direction button
///
DPadUp = 1 << 0,
///
/// DPad down direction button
///
DPadDown = 1 << 1,
///
/// DPad left direction button
///
DPadLeft = 1 << 2,
///
/// DPad right direction button
///
DPadRight = 1 << 3,
///
/// Start button
///
Start = 1 << 4,
///
/// Back button
///
Back = 1 << 5,
///
/// Left stick button
///
LeftStick = 1 << 6,
///
/// Right stick button
///
RightStick = 1 << 7,
///
/// Left shoulder button
///
LeftShoulder = 1 << 8,
///
/// Right shoulder button
///
RightShoulder = 1 << 9,
///
/// Home button
///
Home = 1 << 11,
///
/// Home button
///
BigButton = Home,
///
/// A button
///
A = 1 << 12,
///
/// B button
///
B = 1 << 13,
///
/// X button
///
X = 1 << 14,
///
/// Y button
///
Y = 1 << 15,
///
/// Left thumbstick left direction button
///
LeftThumbstickLeft = 1 << 21,
///
/// Right trigger button
///
RightTrigger = 1 << 22,
///
/// Left trigger button
///
LeftTrigger = 1 << 23,
///
/// Right thumbstick up direction button
///
RightThumbstickUp = 1 << 24,
///
/// Right thumbstick down direction button
///
RightThumbstickDown = 1 << 25,
///
/// Right stick right direction button
///
RightThumbstickRight = 1 << 26,
///
/// Right stick left direction button
///
RightThumbstickLeft = 1 << 27,
///
/// Left stick up direction button
///
LeftThumbstickUp = 1 << 28,
///
/// Left stick down direction button
///
LeftThumbstickDown = 1 << 29,
///
/// Left stick right direction button
///
LeftThumbstickRight = 1 << 30,
}
}