Skip to content

Instantly share code, notes, and snippets.

@ammunoz
Last active January 30, 2020 18:35
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ammunoz/0e01350617ecee89cbc1b1abb039a50d to your computer and use it in GitHub Desktop.
Save ammunoz/0e01350617ecee89cbc1b1abb039a50d to your computer and use it in GitHub Desktop.
Windows 10 Mouse - Natural Scrolling

Windows 10 Mouse - Natural Scrolling

How to use

  1. Open Start menu.
  2. Search for "Windows PowerShell".
  3. Right-click and select "Run as Administrator".
  4. Paste the following:
Get-ItemProperty HKLM:\SYSTEM\CurrentControlSet\Enum\HID\*\*\Device` Parameters FlipFlopWheel -EA 0 | ForEach-Object { Set-ItemProperty $_.PSPath FlipFlopWheel 1 }
  1. Restart your computer.

Explanation

HKLM:\SYSTEM\CurrentControlSet\Enum\HID\*\*\Device`

This path refers to all currently connected hardware input devices' registry values.

HKLM is short for "Handle to Registry Key for Local Machine".

HID are hardware input devices (such as mice).

FlipFlopWheel

This is a registry property that, when set to 1, reverses the value sent by the HID (Natural scrolling).

Get-ItemProperty HKLM:\SYSTEM\CurrentControlSet\Enum\HID\*\*\Device` Parameters FlipFlopWheel -EA 0 |

This does the following:

  1. Scans through all currently connected hardware input devices' registry values.
  2. Checks if the registry value has a FlipFlopWheel property and is set to 0.
  3. Returns a list of all registry values that meets the criteria.
  4. Passes this list to the next half of the line.
ForEach-Object { Set-ItemProperty $_.PSPath FlipFlopWheel 1 }

This command sets the FlipFlopWheel value For each object in the list to 1. This turns on Natural Scrolling.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment