Skip to content

Instantly share code, notes, and snippets.

@remram44
Last active December 11, 2015 18:38
Show Gist options
  • Save remram44/4643068 to your computer and use it in GitHub Desktop.
Save remram44/4643068 to your computer and use it in GitHub Desktop.
Mouse sensitivity changer
gcc set_mouse.c -o set_mouse.exe
gcc set_mouse.c -o set_trackpad.exe -DSENSITIVITY=20
#include <windows.h>
int main(void)
{
SystemParametersInfo(SPI_SETMOUSESPEED, 0, (void*)10, 2);
/* 10 is the default; it can go up to 20 */
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment