Files
sbox-public/engine/Sandbox.Engine/Systems/Input/MouseButtons.cs
s&box team 71f266059a Open source release
This commit imports the C# engine code and game files, excluding C++ source code.

[Source-Commit: ceb3d758046e50faa6258bc3b658a30c97743268]
2025-11-24 09:05:18 +00:00

45 lines
911 B
C#

namespace Sandbox;
/// <summary>
/// State of mouse buttons being pressed or not.
/// </summary>
[Flags, Expose]
public enum MouseButtons
{
// Note that these values line up with Qt::MouseButtons
// so if we change them we should go around making a translator for it
/// <summary>
/// No buttons are being pressed.
/// </summary>
None = 0x00000000,
/// <summary>
/// Left mouse button is being pressed.
/// </summary>
Left = 0x00000001,
/// <summary>
/// Right mouse button is being pressed.
/// </summary>
Right = 0x00000002,
/// <summary>
/// Middle mouse button (mouse wheel) is being pressed in.
/// </summary>
Middle = 0x00000004,
/// <summary>
/// The "back" mouse button (mouse4) being pressed in.
/// </summary>
Back = 0x00000008,
/// <summary>
/// The "forward" mouse button (mouse5) being pressed in.
/// </summary>
Forward = 0x00000010,
// Task = 0x00000020,
}