is this remapping possible?

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
User avatar
mikegyver50
New User
Posts: 1
Joined: Fri Jan 07, 2022 9:40 pm

is this remapping possible?

Post by mikegyver50 »

XMBC Version: 2.19.2
Windows Version: 10
Mouse Information (brand/model): logitech m310
Relevant Computer Information (CPU, RAM etc): meh
Did the problem occur after an upgrade of XMBC? (If so, from what version?): no
Did the problem occur after a Windows update/upgrade? (If so, from what version?): no
How long have you used XMBC?: brand new
What language and keyboard layout do you use in Windows?: english

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).:

I'm using a cad program with horrible mouse 3d navigation mouse commands.
I'm trying to remap from and ---> to
Are the mappings involving mouse travel even possible?

Code: Select all

MMB(hold)+Ctrl(hold)  -->   MMB(hold)
MMB(hold              -->   MMB(hold)+RMB(hold)
MWUP                  -->   MMB(hold)+RMB(click&release)+mouse travel up
MWDN                  -->   MMB(hold)+RMB(click&release)+mouse travel down
User avatar
phil
Site Admin
Posts: 7627
Joined: Sun Apr 06, 2003 11:12 pm

Re: is this remapping possible?

Post by phil »

I'm afraid to say this may not be possible - but there may be a way - you will have to try a few things...

Firstly, XMBC does not remap keys per say, but more to the point, if your are holding CTRL down, then whatever you send with sim-keys will still have CTRL held down - as XMBC can not block keys (it would be not only difficult, but dangerous to block keys like CTRL).

So for the first option: MMB(hold)+Ctrl(hold) --> MMB(hold)
There is a very small possibility that you could "release" CTRL in the simkey and press it again afterwards (if you dont do that the key could get stuck up or down - again not a good idea).

Use method 3 (During) and try: {OD}{RELEASE}{CTRL}{MMB}{OU}{PRESS}{CTRL}
That means (in theory) when the mouse button is pressed, it will release CTRL, press LMB and when the button is released, it will re-press CTRL so when you physically release CTRL, it will be back to normal (released).

That may or may not work.....

Next, MMB(hold) --> MMB(hold)+RMB(hold)
This one should be pretty straight forwards...
Simkeys, method 3 (During): {MMB}{RMB}

Now for: MWUP --> MMB(hold)+RMB(click&release)+mouse travel up
MWDN --> MMB(hold)+RMB(click&release)+mouse travel down

This could be tricky (may be impossible but worth trying the following):

You can move the cursor to point x/y using {MSET} or up/down {MADD} but I suspect this may not work well here - as your after actual movement. I fear that reliably changing the scroll wheel to movement (along with the other keys you need to hold) may be impossible.
The wheel, unlike buttons does not have a down/up (press/release) action, but sends a simple/single "scroll up" or "scroll down" message. That makes "during mode" more tricky as you haven't pressed or released, just scrolled. However, XMBC can simulate the wheel into a button (press/release) using the options tab, turn on the "Ignore repeated remapped scroll" and specify a time (the time between stopping scrolling and the "simulated button released". If you turn that on, then this *may* work (but I'm grasping at straws a little)

Scroll up -> Sim Keys -> Method 6 (repeat while held): {OD}{PRESS}{MMB}{OD}{PRESS}{RMB}{{OD}WAITMS:50}{OD}{RELEASE}{RMB}{OD}{MADD:0,5}{OR}{MADD:0,5}{OR}{RELEASE}{RMB}

Now thats rather complex and I may have got some things wrong but have a play see what it does.
NOTE: For mouse down (not up) simply use {MADD:0,-5} (add -5 to the Y position)

Bear in mind that the CAD program may not see this as movement - as actually the cursor is being repositioned rather than X/Y movement being sent. In that case your out'a luck as things stand.

I hope that's of some use
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