Share via


GameInputMouseButtons (v1)

Enumerates mouse buttons.

Syntax

enum GameInputMouseButtons
{
    GameInputMouseNone           = 0x00000000,
    GameInputMouseLeftButton     = 0x00000001,
    GameInputMouseRightButton    = 0x00000002,
    GameInputMouseMiddleButton   = 0x00000004,
    GameInputMouseButton4        = 0x00000008,
    GameInputMouseButton5        = 0x00000010,
    GameInputMouseWheelTiltLeft  = 0x00000020,
    GameInputMouseWheelTiltRight = 0x00000040
};

Constants

Constant Description
GameInputMouseNone Indicates no mouse buttons are pressed.
GameInputMouseLeftButton Indicates the left mouse button.
GameInputMouseRightButton Indicates the right mouse button.
GameInputMouseMiddleButton Indicates the middle mouse button.
GameInputMouseButton4 Indicates the fourth mouse button.
GameInputMouseButton5 Indicates the fifth mouse button.
GameInputMouseWheelTiltLeft Indicates the left tilt of the scroll wheel.
GameInputMouseWheelTiltRight Indicates the right tilt of the scroll wheel.

Remarks

These flag values are used in the GameInputMouseInfo structure (to determine which mouse buttons are available) and in the GameInputMouseState structure (to get device readings).

For more information about accessing device properties, see GameInput devices. For more information about getting device readings, see GameInput readings.

Requirements

Header: GameInput.h

Supported platforms: Windows

See also

Overview of GameInput GameInput