This file contains 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
# calculation are based on http://www.esreality.com/index.php?a=post&id=1945096 | |
# assuming windows 10 uses the same calculation as windows 7. | |
# guesses have been made calculation is not accurate | |
# touchpad users make sure your touchpad is calibrated with `sudo libinput measure touchpad-size` | |
# import matplotlib.pyplot as plt | |
import struct | |
# set according to your device: | |
xinput_device_id = 13 | |
device_dpi = 1000 # mouse dpi |