Jump to main content
USB Device Stack User Guide
USB Device Stack User Guide
Product Pages
AV32DU20 AV32DU28 AVR16DU14 AVR16DU20 AVR16DU28 AVR16DU32 AVR32DU14 AVR32DU20 AVR32DU28 AVR32DU32 AVR64DU28 AVR64DU32
  1. Home
  2. 4 USB Device Stack API Documentation
  3. 4.4 Module Documentation
  4. 4.4.11 USB Human Interface Device (HID) Mouse
  5. 4.4.11.1 Module description
  6. 4.4.11.1.4 HID Mouse buttons

  • Introduction
  • 1 USB Device Stack Acronyms and Abbreviations

    This section describes commonly used acronyms and abbreviations throughout this document, ordered by first appearance.

  • 2 USB Device Stack Architecture
  • 3 User Guide
  • 4 USB Device Stack API Documentation
    • 4.1 Project MISRA C:2012 deviations
    • 4.2 Specific MISRA C:2012 deviations
    • 4.3 Supported MISRA C:2012 Rules
    • 4.4 Module Documentation
      • 4.4.1 USB Communications Device Class (CDC)
      • 4.4.2 USB Common Elements
      • 4.4.3 USB Core Layer
      • 4.4.4 USB Descriptor Definitions
      • 4.4.5 USB Core Events
      • 4.4.6 USB Core Requests
      • 4.4.7 USB Core Transfer
      • 4.4.8 USB Protocol
      • 4.4.9 USB Human Interface Device (HID)
      • 4.4.10 USB Human Interface Device (HID) Keyboard
      • 4.4.11 USB Human Interface Device (HID) Mouse
        • 4.4.11.1 Module description
          • 4.4.11.1.1 Definitions
          • 4.4.11.1.2 Functions
          • 4.4.11.1.3 HID Mouse button state
          • 4.4.11.1.4 HID Mouse buttons
        • 4.4.11.2 Definition Documentation
        • 4.4.11.3 Function Documentation
      • 4.4.12 USB Human Interface Device (HID) Transfer
      • 4.4.13 USB Peripheral Hardware Abstraction Layer (HAL)
      • 4.4.14 USB Peripheral AVR DU
      • 4.4.15 USB Peripheral Endpoint
      • 4.4.16 USB Peripheral Read/Write
      • 4.4.17 USB Vendor Class
    • 4.5 Data Structure Documentation
    • 4.6 File Documentation
  • 5 Document Revision History
  • Microchip Information

4.4.11.1.4 HID Mouse buttons

Macros for the mouse buttons.

  • #define HID_MOUSE_LEFT_BUTTON 0x01u

  • #define HID_MOUSE_RIGHT_BUTTON 0x02u

  • #define HID_MOUSE_MIDDLE_BUTTON 0x04u

The online versions of the documents are provided as a courtesy. Verify all content and data in the device’s PDF documentation found on the device product page.

About

Company
Careers
Contact Us
Media Center
Investor Relations
Corporate Responsibility

Support

Microchip Forums
AVR Freaks
Design Help
Technical Support
Export Control Data
PCNs

Quick Links

microchipDIRECT.com
Microchip University
myMicrochip
Blogs
Reference Designs
Parametric Search
Microchip Logo

Microchip Technology Inc.

2355 West Chandler Blvd.

Chandler, Arizona, USA

Microchip Facebook
Microchip LinkedIn
Microchip Twitter
Microchip Instagram
Microchip Weibo

© Copyright 1998-2024 Microchip Technology Inc. All rights reserved. Shanghai ICP Recordal No.09049794

Terms Of Use
Privacy Notice
Legal
Your Privacy Choices California Consumer Privacy Act (CCPA) Opt-Out Icon