oleg-st / InvertMouse

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

High-dpi user interface #7

Open astenlund opened 1 year ago

astenlund commented 1 year ago

Hi,

First of all, thanks for an incredibly useful app!

If you're interested, I've added the ability to start it minimized via a new command-line option: --minimized. This makes for a nice user experience when the app is launched by a script or by AutoActions.

I've also added support for high-dpi monitors.

Cheers, Andreas Stenlund

oleg-st commented 1 year ago

Hi,

Thank you for your interest.

I think it it possible to start invert mouse minimized with "minimized" option in shortcut options. Support for high-dpi monitors is nice, I don't have any to test it.

astenlund commented 1 year ago

Yes, if you create a shortcut to the .exe, you can specify to run minimized. This doesn't currently work, as there's a null-reference in the MainForm-Resize() method if you do this, but I'm sure that problem can be easily fixed. However, the shortcut trick would not work with AutoActions, unfortunately. AutoActions will run the .exe directly even if you specify the shortcut.

oleg-st commented 1 year ago

Fixed that NPE in Resize

oleg-st commented 1 year ago

Added "start minimized" option

astenlund commented 1 year ago

Nice solution for start minimized, it works well. I've updated the PR in case you want the DPI update, but it's understandable if you feel you'd like to be able to test it first. In that case, feel free to reject.