Using Two mapped buttons together

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 or images until they have at least 4 posts.
Post Reply
RaexD
New User
Posts: 1
Joined: Sat Feb 01, 2020 12:04 pm

Using Two mapped buttons together

Post by RaexD » Sat Feb 01, 2020 12:21 pm

XMBC Version: 2.18.8
Windows Version: 10 x64 1909
Clear description of the problem - try and include as much information as possible, including what button and mappings you are having problems with (if applicable).: Simply trying to use two simulated sticky held buttons together. M4 is set to sticky held RALT and M5 to sticky held RCTRL in simulated keys. They individually work fine for what I am intending to do. But when I try to use them together since a hotkey is set as RCTRL+RALT+LMB it acts slightly weird. The order of RCTRL or RALT doesn't matter in the hotkey activation.

When I press M4 and the M5 my initial expectation is for them to be activated and held down together. This doesn't happen though. Whichever first key I use M4 or M5 and then the other, only the action of the first key is held down and not the second. I have to press the second key again to get the effect I want. And then, when I have to disable it, I have to press them in reverse order and in reverse number. So M4+M5+M5 gives me the effect of RCTRL+RALT and using M5+M4+M4 releases it from sticky. Any other combo keeps them pressed still.

Also, I am unable to get them to release when the actual RCTRL and RALT are pressed. Since the RALT pressed keeps ALT-TAB window active since it is being held in sticky mode.

EDIT: I solved the last issue at least, getting them to release on button press. But I also want it to not send any query to the system. Basically, have it release on button press and prevent the combined output from the windows. Right now, when CTRL is held down pressing escape opens start menu and releases Ctrl button.

User avatar
phil
Site Admin
Posts: 6265
Joined: Sun Apr 06, 2003 11:12 pm

Re: Using Two mapped buttons together

Post by phil » Sun Feb 02, 2020 4:51 pm

I'm afraid XMBC can currently only handle one sticky button at a time. This is an unfortunate limitation of how it was originally developed, where internally it uses a global state "sticky" flag - just one flag for all buttons. So its doing what its supposed to be doing (how it was designed to work - even if that design was somewhat flawed in this respect). Unfortunately to change this is not an insignificant amount of work (basically the whole lot would have the be thrown away and re-done - and that's not something I can commit to right now.)
--[ Phil ]--
--[ Administrator & XMBC Author ]--
Logitech G9, Logitech MX518, Microsoft Intellimouse, Trust 16341 BT Mouse
Windows 10 x64, Intel i5-9600k, Asus Z390-ROG, 16GB DDR4,
nVidia GeForce GTX 970, Evo 970 500Gb NVME, 2x2TB WD Black (RAID1)

Post Reply