Search
Module:
Directory

   Desktop Functions:

   Smart Device Functions:


Show Recent Changes
Subscribe (RSS)
Misc. Pages
Comments
FAQ
Helpful Tools
Playground
Suggested Reading
Website TODO List
Download Visual Studio Add-In

RawMouseButtons (Enums)
 
.
Summary
Enumeration for button states for use with RAWINPUTMOUSE.

C# Definition:

    /// <summary>
    /// Enumeration containing the button data for raw mouse input.
    /// </summary>
    [Flags()]
    public enum RawMouseButtons
        : ushort
    {
        /// <summary>No button.</summary>
        None = 0,
        /// <summary>Left (button 1) down.</summary>
        LeftDown = 0x0001,
        /// <summary>Left (button 1) up.</summary>
        LeftUp = 0x0002,
        /// <summary>Right (button 2) down.</summary>
        RightDown = 0x0004,
        /// <summary>Right (button 2) up.</summary>
        RightUp = 0x0008,
        /// <summary>Middle (button 3) down.</summary>
        MiddleDown = 0x0010,
        /// <summary>Middle (button 3) up.</summary>
        MiddleUp = 0x0020,
        /// <summary>Button 4 down.</summary>
        Button4Down = 0x0040,
        /// <summary>Button 4 up.</summary>
        Button4Up = 0x0080,
        /// <summary>Button 5 down.</summary>
        Button5Down = 0x0100,
        /// <summary>Button 5 up.</summary>
        Button5Up = 0x0200,
        /// <summary>Mouse wheel moved.</summary>
        MouseWheel = 0x0400
    }

VB Definition:

    ''' <summary>
    ''' Enumeration containing the button data for raw mouse input.
    ''' </summary>
    <Flags()> _
    Public Enum RawMouseButtons As UShort
    ''' <summary>No button.</summary>
    None = 0
    ''' <summary>Left (button 1) down.</summary>
    LeftDown = &H1
    ''' <summary>Left (button 1) up.</summary>
    LeftUp = &H2
    ''' <summary>Right (button 2) down.</summary>
    RightDown = &H4
    ''' <summary>Right (button 2) up.</summary>
    RightUp = &H8
    ''' <summary>Middle (button 3) down.</summary>
    MiddleDown = &H10
    ''' <summary>Middle (button 3) up.</summary>
    MiddleUp = &H20
    ''' <summary>Button 4 down.</summary>
    Button4Down = &H40
    ''' <summary>Button 4 up.</summary>
    Button4Up = &H80
    ''' <summary>Button 5 down.</summary>
    Button5Down = &H100
    ''' <summary>Button 5 up.</summary>
    Button5Up = &H200
    ''' <summary>Mouse wheel moved.</summary>
    MouseWheel = &H400
    End Enum

Notes:

None.

Documentation
 

Please edit this page!

Do you have...

  • helpful tips?
  • corrections to the existing content?
  • additional languages you want to include?

Select "Edit This Page" on the right hand toolbar and edit it!

 
Access PInvoke.net directly from VS:
Terms of Use
Edit This Page
Find References
Show Printable Version
Revisions