Today 08:52
Forum: Proton Plus Compiler v3
Starter: Klr650
Views: 0
Replies: 6
Today 00:53
Forum: Proton Plus Compiler v3
Starter: Dave-S
Views: 0
Replies: 4
Yesterday 18:24
Forum: The Lounge
Starter: Tim
Views: 0
Replies: 13
Yesterday 13:10
Forum: Test Postings
Starter: IstvanK
Views: 0
Replies: 0
+ Reply to Thread
Results 1 to 3 of 3

Thread: Adding buttons to USB mouse demo.31 days old

  1. #1
    Prolific Poster See_Mos's Avatar
    Join Date
    Feb 2004
    Posts
    1,177
    Thumbs Up
    Received: 2
    Given: 0
    Total Downloaded
    435.78 MB

    0 Not allowed!

    Default Adding buttons to USB mouse demo.

    Help please. This should be so easy but today I am really struggling

    I have read various articles on the web but cannot figure out how to add left and right button click to the USB mouse demo.
    My RAM is failing

  2. #2
    Prolific Poster towlerg's Avatar
    Join Date
    Mar 2012
    Posts
    1,327
    Thumbs Up
    Received: 49
    Given: 123
    Total Downloaded
    2.37 GB

    1 Not allowed!

    Default Re: Adding buttons to USB mouse demo.

    Have you looked at Microchip's MLA? Note just how similar the Proton "new" stack (not the version embedded in the compiler USBIN etc.) descriptor is to the Microchip one.
    George

  3. #3
    Prolific Poster towlerg's Avatar
    Join Date
    Mar 2012
    Posts
    1,327
    Thumbs Up
    Received: 49
    Given: 123
    Total Downloaded
    2.37 GB

    0 Not allowed!

    Default Re: Adding buttons to USB mouse demo.

    Had a quick look and it seems straightforward, which ever flavour of USB stack you are using, you will be sending 3 bytes to endpoint 1. The 2nd. and 3rd. bytes are x and y, the 1st. is among other things buttons. Bit 0 is right, bit 1 is middle and bit 2 is left.
    George

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Similar Threads

  1. Replies: 8
    Last Post: 7th May 2014, 00:45
  2. Replies: 2
    Last Post: 26th April 2013, 16:31
  3. USB HID Mouse Demo
    By johngb in forum USB Module
    Replies: 4
    Last Post: 1st October 2012, 12:40
  4. [SOLVED !] USB/PS2 mouse interface
    By babu biri in forum Proton Plus Compiler v3
    Replies: 5
    Last Post: 22nd August 2009, 11:41

Members who have read this thread : 18

Actions :  (Set Date)

You do not have permission to view the list of names.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts