Page 1 of 1

Mouse acceleration

Posted: Wed Apr 15, 2020 7:07 am
by TemporaryFailure
So when we can adjust mouse acceleration with XMouse? Speed control has 10 steps. It could be more like 20 steps.

Re: Mouse acceleration

Posted: Wed Apr 15, 2020 8:59 am
by phil
XMBC uses Windows mouse hooks to intercept and manipulate mouse button messages. As for cursor speed, all it does is manipulate the standard Windows mouse speed setting (on a per profile basis if you so wish). That only has 10 steps. Unfortunately, performing acceleration in a mouse hook is really not the right place to do it, because you cant modify/multiply the distance/movement etc. in there. I would have to throw out the movement all together and re-inject a new movement message - and that would a) cause lag and b) not work in any application that block sendinput (many games) and that means the mouse cursor wouldn't move at all in those cases - rather dangerous!

This is how invert axis works but that's less important if it does not work in games etc. as it does not completely stop the mouse working! So don't hold your breath for this one. Unless Windows has an acceleration setting that I haven't found (it does not exist in my mouse control panel settings), it wont be possible in XMBC.

Re: Mouse acceleration

Posted: Wed Apr 15, 2020 9:02 am
by phil
Having said that - I just found this https://superuser.com/questions/469044/ ... ws-regedit
I wonder if it still applies.... Will add it to the list to investigate

Re: Mouse acceleration

Posted: Fri Apr 17, 2020 2:09 pm
by TemporaryFailure
Thanks. That would be absolutely super! :cheers:

Re: Mouse acceleration

Posted: Sun Jul 12, 2020 3:57 am
by BurrJ
I was wondering the same thing, but also wondering if it was possible to have a hotkey turn off and on acceleration (precision)? I use XBMC's speed and acceleration to help with a golf swing in a game, but the acceleration causes the putting to be a little weird. Would be nice if it was able to turn it off/on if that was possible.


Also, on the topic of changing the acceleration curve. I use a Kensington Expert mouse, and the Kennsington software gives me the option of controlling the acceleration, so it seems it is a possibility. It does seem that XBMC overrides the Kennsington however, as I can change it's settings when I have XBMC open and it has no effect.

Re: Mouse acceleration

Posted: Sun Jul 12, 2020 8:53 am
by phil
Just to be clear, ALL XMBC is doing with the mouse cursor speed (and the enhance pointer precision setting) is changing the standard Windows mouse pointer settings. No more, No less.

*If* Windows has an acceleration setting (in the pointer settings), its normally not visible so may not be available for all devices or may need the device's driver to implement something (I'm simply not sure about that and haven't looked at that).

Right now these settings are not available in XMBC via the hotkeys, except for cycling/stepping through a set of cursor speeds. You can however turn the "enhance pointer precision" (if that is what you are talking about?) on a per-profile basis so you could create a profile for your golf game and turn it off on that profile - maybe?

Re: Mouse acceleration

Posted: Sun Jul 12, 2020 7:29 pm
by BurrJ
Thanks Phil. I was actually wanting to use (and be able to turn off) the "enhance pointer precision" during the game. It seems to work well for the golf swing with normal clubs, but I'd want to turn it off when I go to putt.

Is it possible to change profiles while I'm playing the game? Maybe that would work...hmm.

Re: Mouse acceleration

Posted: Sun Jul 12, 2020 7:33 pm
by phil
Ahh I see, OK thats not going to be so easy....
So profiles are switched automatically based on the active exe/window - so it wont be possible to switch automatically during the same game. Normally I'd say use layers - but thats for button configuration, and not the scrolling settings that are only per profile. That I guess is a short fall in feature set :(. I think the best you could probably do is set Windows default to disable pointer precision, set XMBC to enable it, then turn off XMBC when putting (you can do that by hotkey or scroll lock) - I know thats all a bit messy but without going down another route (like making an autohotkey script maybe - not sure if AHK can toggle that setting) I cant think of another way the way things are right now.

Regards,
Phil

Re: Mouse acceleration

Posted: Mon Jul 13, 2020 12:42 am
by BurrJ
Disabling XBMC could very well work, I'll have a try at that. Thanks for the suggestion. In the end, it's a minor annoyance that I'm sure I can learn to deal with.

I'd be willing to bet you could toggle that setting with AHK. It's been my experience over the years there isn't much AHK can't do. :D

I did find a program someone wrote which sets mouse speed and precision as a command line argument, so that would probably be the easiest route.