Make sure trakball is read over entire vertical range.

This commit is contained in:
Stephen Anthony 2017-07-30 13:14:16 -02:30
parent eaf19d2b90
commit 04ce40b27c
1 changed files with 2 additions and 2 deletions

View File

@ -193,9 +193,9 @@ void PointingDevice<T>::update()
myTrakBallCountH = abs(myVCounter / T::counterDivide);
myTrakBallCountV = abs(myHCounter / T::counterDivide);
myTrakBallLinesH = mySystem.tia().height() / (myTrakBallCountH + 1);
myTrakBallLinesH = mySystem.tia().scanlinesLastFrame() / (myTrakBallCountH + 1);
if(myTrakBallLinesH == 0) myTrakBallLinesH = 1;
myTrakBallLinesV = mySystem.tia().height() / (myTrakBallCountV + 1);
myTrakBallLinesV = mySystem.tia().scanlinesLastFrame() / (myTrakBallCountV + 1);
if(myTrakBallLinesV == 0) myTrakBallLinesV = 1;
// Get mouse button state