oleg-st / InvertMouse

Adds the ability to invert the mouse Y-axis in games
MIT License
22 stars 3 forks source link

Can I keybind invertmouse so I may invertmouse on the fly? #5

Open HobbledCat opened 1 year ago

HobbledCat commented 1 year ago

I was wondering if I could bind Invert X and invert Y to a key or other hardware button. So I may Hold/toggle the key to re-center my mouse while still having control of cursor movement. It's very cool never needing to lift the mouse to center it. Some games allow you to make ingame binds to invertmouse X and Y, but support is nonexistant or you have to dig very deep for obscure commands.

oleg-st commented 1 year ago

I didn't understand the use case. And can you explain the part about re-center mouse?

HobbledCat commented 1 year ago

Your mousepad has limited space. And when you run out you usually pick up your physical mouse to center it. Having an invert mouse bind is a way to expand that space. For example a 180 turn in an FPS can be performed by first doing 90 while inverted, then 90 normal, and the net movement physical mouse would be zero still in the center of the mousepad space. And it would technically be possible to have continuous cursor and never need to lift the physical mouse assuming you could seemlessly track a target both inverted and normal (although that's a less realistic technique). Infinite mousepad is technically possible, but practically it doubles your mouse space if you don't want to learn how to track while inverted.

There is precedent of this feature officially, but not for keyboard and mouse. Recently Gyro-aim has been getting more and more popular since it's accessible on controller and as precise as a mouse, the only issue being the small space issue (imagine a very small mousepad since the controller has limited yaw roll pitch before you need to readjust your grip). In particular Fortnite has indepth gyro support and has separate invert X and Y modifiers to help alleviate this small space issue. among other features to expand space like cursor acceleration.

These same accessibility features can be applied to keyboard and mouse to expand your tracking space. There are other features to expand the space of a mouse like mouse acceleration (like raw accel) already exist so I imagine the demand exists to expand mouse space with software solutions. And I found invert on the fly personally easier than learning a new mouse accel profiles and mouse accel still ultimately needs to lift the physical mouse. Invert on the fly Basically doubles your tracking space on a click of a button and has a easy learning curve and removes the need to lift the physical mouse for adjustment all together.

A fully-featured way to implement this would look like.

And I see you already added custom sensitivity in your latest update.

tomlau10 commented 1 year ago

hi, i come across this app recently and it's great!! finally i can now play some old games which didn't support invert mouse option 😄

i especially like the invert when cursor is hidden feature but still there is a use case where a keybind to toggle / temporarily suspend the invert function is helpful

for example, i just come across a game which uses custom cursor in menu screen / pause screen in this case the cursor is considered as hidden => thus will still trigger mouse invert => i cannot control the in game cursor naturally, unless i manually turn off the invert y option


just say if middle mouse click can be used to toggle the invert y option then whenever i pause the game and the menu screen shows up i can do a middle mouse click to toggle the invert y option so that i can naturally control the game cursor again

oleg-st commented 1 year ago

@tomlau10 hi, I'll try to make start/stop by a key

oleg-st commented 1 year ago

@tomlau10 Done in 1.0.5

tomlau10 commented 1 year ago

wow i just tried the latest version and that's awesome 👍 @oleg-st