Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#135 Request: multi-button mouse support

open
nobody
None
5
2013-12-05
2009-02-23
Anonymous
No

I am used to being able to use my 10-button Logitech mouse with Windows RDP but rdesktop doesn't seem to support more than the typical right/middle/left+wheel configuration. Everything else uses the mouse fine.

Discussion

  • I've just looked at the documentation from Microsoft on the RDP protocol and I've found that we can send events for two extended mouse buttons in addition to the already supported left, right and middle button (or wheel up/down). Do all of the 10 buttons work perfectly fine with Microsoft Windows' RDP client? In any case, I can try adding something for the two extended mouse buttons specified in the documentation. For this I need to know which button number is given to your X server whenever you press one of your extended mouse buttons. The model number would help. To get the number for each of your buttons simply run xev in a terminal, point your cursor into the small xev X window, and click your mouse buttons to get the number. You'll get something like this:

    ButtonPress event, serial 34, synthetic NO, window 0x3a00002,
    root 0x263, subw 0x0, time 1098357888, (63,88), root:(781,288),
    state 0x10, button 8, same_screen YES

    Once you're done, send me your mouse information along with a description of what I should expect to see when I press each of the extended buttons, so that I know how to test it. I'll see what I can do.

     
  • It's a Logitech MX310.

    Xev reports that 8 is the "back" button and 9 is the "forward" button.

    The 10th button doesn't appear to work under RDP but it's normally controlled by the driver, IIRC.

    What it does for me is move back/forward a page in Firefox. If that works, it should work most everywhere else that I need it.

     
  • Any progress been made on this? I'm not trying to rush anyone but the lack of my mouse buttons really slows me down so I'm trying to make sure I've answered the questions adequately, etc.

    Thanks

     
  • angelstam
    angelstam
    2012-09-05

    This is my somewhat related hardware with 5 buttons I would like to see supported by rdesktop.

    lsusb:
    ID 045e:0047 Microsoft Corp. IntelliMouse Explorer 3.0

    Forward:
    ButtonPress event, serial 33, synthetic NO, window 0x2000001,
    root 0x100, subw 0x0, time 81468553, (184,260), root:(185,283),
    state 0x10, button 9, same_screen YES

    ButtonRelease event, serial 33, synthetic NO, window 0x2000001,
    root 0x100, subw 0x0, time 81468928, (184,260), root:(185,283),
    state 0x10, button 9, same_screen YES

    Back:
    ButtonPress event, serial 33, synthetic NO, window 0x2000001,
    root 0x100, subw 0x0, time 81470840, (184,260), root:(185,283),
    state 0x10, button 8, same_screen YES

    ButtonRelease event, serial 33, synthetic NO, window 0x2000001,
    root 0x100, subw 0x0, time 81471040, (184,260), root:(185,283),
    state 0x10, button 8, same_screen YES

     
  • Alain Greppin
    Alain Greppin
    2012-11-05

    Logitech mouse Laser G5
    P/N: 831693-1000
    PID: LZ551BE

    This mouse model don't have a forward button:

    ButtonPress event, serial 39, synthetic NO, window 0x2c00001,
    root 0x261, subw 0x0, time 54277222, (26,106), root:(897,561),
    state 0x10, button 8, same_screen YES

    ButtonRelease event, serial 39, synthetic NO, window 0x2c00001,
    root 0x261, subw 0x0, time 54277360, (26,106), root:(897,561),
    state 0x10, button 8, same_screen YES

    The back button is not working in rdesktop (debian wheezy/xfce4).

     
  • Alain Greppin
    Alain Greppin
    2012-11-05

    Logitech mouse Laser G5
    P/N: 831693-1000
    PID: LZ551BE

    This mouse model don't have a forward button:

    ButtonPress event, serial 39, synthetic NO, window 0x2c00001,
    root 0x261, subw 0x0, time 54277222, (26,106), root:(897,561),
    state 0x10, button 8, same_screen YES

    ButtonRelease event, serial 39, synthetic NO, window 0x2c00001,
    root 0x261, subw 0x0, time 54277360, (26,106), root:(897,561),
    state 0x10, button 8, same_screen YES

    The back button is not working in rdesktop (debian wheezy/xfce4).

     
  • h4de5
    h4de5
    2013-12-05

    I know it's a rather old ticket, but it seems still open.

    Client: RaspberryPi B
    Server: Windows 2011 Home Server

    lsusb:

    Bus 001 Device 005: ID 046d:c051 Logitech, Inc. G3 (MX518) Optical Mouse

    xev:

    ButtonPress event, serial 43, synthetic NO, window 0x1c00001,
    root 0x43, subw 0x0, time 8796640, (175,16), root:(682,832),
    state 0x0, button 8, same_screen YES

    ButtonRelease event, serial 43, synthetic NO, window 0x1c00001,
    root 0x43, subw 0x0, time 8796808, (175,16), root:(682,832),
    state 0x0, button 8, same_screen YES

    ButtonPress event, serial 43, synthetic NO, window 0x1c00001,
    root 0x43, subw 0x0, time 8799849, (175,16), root:(682,832),
    state 0x0, button 9, same_screen YES

    ButtonRelease event, serial 43, synthetic NO, window 0x1c00001,
    root 0x43, subw 0x0, time 8800049, (175,16), root:(682,832),
    state 0x0, button 9, same_screen YES

    All other mouse buttons work fine.