Revert "refactor(Dalamud): switch to file-scoped namespaces"

This reverts commit b5f34c3199.
This commit is contained in:
goat 2021-11-18 15:23:40 +01:00
parent d473826247
commit 1561fbac00
No known key found for this signature in database
GPG key ID: 7773BB5B43BA52E5
325 changed files with 45549 additions and 45209 deletions

View file

@ -1,95 +1,96 @@
using System;
namespace Dalamud.Game.ClientState.GamePad;
/// <summary>
/// Bitmask of the Button ushort used by the game.
/// </summary>
[Flags]
public enum GamepadButtons : ushort
namespace Dalamud.Game.ClientState.GamePad
{
/// <summary>
/// No buttons pressed.
/// Bitmask of the Button ushort used by the game.
/// </summary>
None = 0,
[Flags]
public enum GamepadButtons : ushort
{
/// <summary>
/// No buttons pressed.
/// </summary>
None = 0,
/// <summary>
/// Digipad up.
/// </summary>
DpadUp = 0x0001,
/// <summary>
/// Digipad up.
/// </summary>
DpadUp = 0x0001,
/// <summary>
/// Digipad down.
/// </summary>
DpadDown = 0x0002,
/// <summary>
/// Digipad down.
/// </summary>
DpadDown = 0x0002,
/// <summary>
/// Digipad left.
/// </summary>
DpadLeft = 0x0004,
/// <summary>
/// Digipad left.
/// </summary>
DpadLeft = 0x0004,
/// <summary>
/// Digipad right.
/// </summary>
DpadRight = 0x0008,
/// <summary>
/// Digipad right.
/// </summary>
DpadRight = 0x0008,
/// <summary>
/// North action button. Triangle on PS, Y on Xbox.
/// </summary>
North = 0x0010,
/// <summary>
/// North action button. Triangle on PS, Y on Xbox.
/// </summary>
North = 0x0010,
/// <summary>
/// South action button. Cross on PS, A on Xbox.
/// </summary>
South = 0x0020,
/// <summary>
/// South action button. Cross on PS, A on Xbox.
/// </summary>
South = 0x0020,
/// <summary>
/// West action button. Square on PS, X on Xbos.
/// </summary>
West = 0x0040,
/// <summary>
/// West action button. Square on PS, X on Xbos.
/// </summary>
West = 0x0040,
/// <summary>
/// East action button. Circle on PS, B on Xbox.
/// </summary>
East = 0x0080,
/// <summary>
/// East action button. Circle on PS, B on Xbox.
/// </summary>
East = 0x0080,
/// <summary>
/// First button on left shoulder side.
/// </summary>
L1 = 0x0100,
/// <summary>
/// First button on left shoulder side.
/// </summary>
L1 = 0x0100,
/// <summary>
/// Second button on left shoulder side. Analog input lost in this bitmask.
/// </summary>
L2 = 0x0200,
/// <summary>
/// Second button on left shoulder side. Analog input lost in this bitmask.
/// </summary>
L2 = 0x0200,
/// <summary>
/// Press on left analogue stick.
/// </summary>
L3 = 0x0400,
/// <summary>
/// Press on left analogue stick.
/// </summary>
L3 = 0x0400,
/// <summary>
/// First button on right shoulder.
/// </summary>
R1 = 0x0800,
/// <summary>
/// First button on right shoulder.
/// </summary>
R1 = 0x0800,
/// <summary>
/// Second button on right shoulder. Analog input lost in this bitmask.
/// </summary>
R2 = 0x1000,
/// <summary>
/// Second button on right shoulder. Analog input lost in this bitmask.
/// </summary>
R2 = 0x1000,
/// <summary>
/// Press on right analogue stick.
/// </summary>
R3 = 0x2000,
/// <summary>
/// Press on right analogue stick.
/// </summary>
R3 = 0x2000,
/// <summary>
/// Button on the right inner side of the controller. Options on PS, Start on Xbox.
/// </summary>
Start = 0x8000,
/// <summary>
/// Button on the right inner side of the controller. Options on PS, Start on Xbox.
/// </summary>
Start = 0x8000,
/// <summary>
/// Button on the left inner side of the controller. ??? on PS, Back on Xbox.
/// </summary>
Select = 0x4000,
/// <summary>
/// Button on the left inner side of the controller. ??? on PS, Back on Xbox.
/// </summary>
Select = 0x4000,
}
}