Created
February 22, 2022 02:46
-
-
Save WesleyCh3n/d7fdfdc7a0331929c3d57357d5143913 to your computer and use it in GitHub Desktop.
Windows 10 mouse wheel direction
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# open powershell in administrator mode | |
$mode = Read-host "How do you like your mouse scroll (0 or 1)?"; Get-PnpDevice -Class Mouse -PresentOnly -Status OK | ForEach-Object { "$($_.Name): $($_.DeviceID)"; Set-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Enum\$($_.DeviceID)\Device Parameters" -Name FlipFlopWheel -Value $mode; "+--- Value of FlipFlopWheel is set to " + (Get-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Enum\$($_.DeviceID)\Device Parameters").FlipFlopWheel + "`n" } | |
# 0: default direction | |
# 1: invert direction | |
# Reboot to take effect |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment