Page 1 of 1

About double clicking with the middle mouse button

Posted: Sun Aug 22, 2021 12:48 pm
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?
:

Re: About double clicking with the middle mouse button

Posted: Sun Aug 22, 2021 2:37 pm
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?

Re: About double clicking with the middle mouse button

Posted: Mon Aug 23, 2021 1:49 am
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).

Re: About double clicking with the middle mouse button

Posted: Mon Aug 23, 2021 8:59 am
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