Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- float oneDegreePerCM = 115.45;
- float mouseWidth = 7.0;
- float mousepadSize;
- float degreesOfRotation;
- float mouseSpace;
- float degreesRequired;
- float sensitivity;
- int main()
- {
- cout << "Enter mousepad size: ";
- cin >> mousepadSize;
- cout << "Enter desired degrees of rotation: ";
- cin >> degreesOfRotation;
- mouseSpace = mousepadSize - mouseWidth;
- degreesRequired = degreesOfRotation / mouseSpace;
- sensitivity = degreesRequired * oneDegreePerCM;
- cout << "Sensitivity: " << sensitivity;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement