About double clicking with the middle mouse button

x64 Replacement/Alternative to Microsoft's IntelliMouse application.
Forum rules
Please read the forum rules before posting for the first time.
The more information you can provide, the quicker and more accurately someone can help.
NOTE: To reduce spam, new users can not post links, files or images until they have at least 4 posts.
Post Reply
hp309872201
New User
Posts: 4
Joined: Sat Aug 21, 2021 11:11 am

About double clicking with the middle mouse button

Post by hp309872201 »

XMBC Version 2.19.2:
Windows 10:
Mouse Information (brand/model):IBM SK8835:


XMBC is great. I like it very much. I'd like to ask whether the user-defined middle button double-click function can be added in subsequent versions?
:
User avatar
phil
Site Admin
Posts: 7627
Joined: Sun Apr 06, 2003 11:12 pm

Re: About double clicking with the middle mouse button

Post by phil »

What user defined middle button double click function?
Do you mean to detect a double click as a different button mapping (not likely possible) or do you mean to map the button to double click?
--[ Phil ]--
--[ Administrator & XMBC Author ]--
Logitech G9/G604/M720/MX518, Microsoft Intellimouse, Trust 16341 BT Mouse
Windows 10 x64, AMD Ryzen 5900x, MSI x570 Tomahawk, 32GB DDR4,
nVidia RTX 2070s, Evo 970 1Tb NVME, 2x2TB WD Black (RAID1)
hp309872201
New User
Posts: 4
Joined: Sat Aug 21, 2021 11:11 am

Re: About double clicking with the middle mouse button

Post by hp309872201 »

I'm sorry,my English is poor.
Yes,I mean to detect a double click as a different button mapping.
For example. I want to map (Alt+Left) to (double-click the middle button).
User avatar
phil
Site Admin
Posts: 7627
Joined: Sun Apr 06, 2003 11:12 pm

Re: About double clicking with the middle mouse button

Post by phil »

XMBC can not see double clicks. XMBC uses mouse hooks which does not have any visibility of single/double click. All XMBC sees is "button is pressed", "Button is released" - no concept of double or triple or whatever number of clicks. So not possible in XMBC.

To do this you would have to block the first click until you know if there is a second or third coming (so for > than the double click time as defined in Widnows). Then you would have to re-send the click if its not a double... This is problematic because some programs (esp. games) rejected "injected" input. So to do this at user level (that XMBC runs at) is not going to be very reliable (and an awful lot of complexity). It really needs to be done at a lower level (like in the mouse driver)

Regards,
Phil
--[ Phil ]--
--[ Administrator & XMBC Author ]--
Logitech G9/G604/M720/MX518, Microsoft Intellimouse, Trust 16341 BT Mouse
Windows 10 x64, AMD Ryzen 5900x, MSI x570 Tomahawk, 32GB DDR4,
nVidia RTX 2070s, Evo 970 1Tb NVME, 2x2TB WD Black (RAID1)
Post Reply