Compartilhar via


MouseButton Enumeration

MouseButton Enumeration

Defines values that specify which mouse button was pressed.

Declaration

[C++]

typedef enum MouseButton
    { NO_BUTTON     = 0,
      LEFT_BUTTON   = 0x1,
      RIGHT_BUTTON  = 0x2,
      MIDDLE_BUTTON = 0x4
    } MouseButton;

Members

Name Description
NO_BUTTON Default. No mouse button was pressed.
LEFT_BUTTON The left mouse button was pressed.
RIGHT_BUTTON The right mouse button was pressed.
MIDDLE_BUTTON The middle mouse button was pressed.