Skip to content

Instantly share code, notes, and snippets.

View alexhorner's full-sized avatar
☎️

Alexander Horner alexhorner

☎️
View GitHub Profile
# calculation are based on http://www.esreality.com/index.php?a=post&id=1945096
# assuming windows 10 uses the same calculation as windows 7.
import struct
# set according to your device:
device_dpi = 304 # mouse/touchpad dpi
screen_dpi = 157
sample_point_count = 30
sensitivity_factor = 1.0
# sensitivity factor translation table: (windows slider notches)