mirror of https://github.com/stella-emu/stella.git
Make sure trakball is read over entire vertical range.
This commit is contained in:
parent
eaf19d2b90
commit
04ce40b27c
|
@ -193,9 +193,9 @@ void PointingDevice<T>::update()
|
||||||
myTrakBallCountH = abs(myVCounter / T::counterDivide);
|
myTrakBallCountH = abs(myVCounter / T::counterDivide);
|
||||||
myTrakBallCountV = abs(myHCounter / T::counterDivide);
|
myTrakBallCountV = abs(myHCounter / T::counterDivide);
|
||||||
|
|
||||||
myTrakBallLinesH = mySystem.tia().height() / (myTrakBallCountH + 1);
|
myTrakBallLinesH = mySystem.tia().scanlinesLastFrame() / (myTrakBallCountH + 1);
|
||||||
if(myTrakBallLinesH == 0) myTrakBallLinesH = 1;
|
if(myTrakBallLinesH == 0) myTrakBallLinesH = 1;
|
||||||
myTrakBallLinesV = mySystem.tia().height() / (myTrakBallCountV + 1);
|
myTrakBallLinesV = mySystem.tia().scanlinesLastFrame() / (myTrakBallCountV + 1);
|
||||||
if(myTrakBallLinesV == 0) myTrakBallLinesV = 1;
|
if(myTrakBallLinesV == 0) myTrakBallLinesV = 1;
|
||||||
|
|
||||||
// Get mouse button state
|
// Get mouse button state
|
||||||
|
|
Loading…
Reference in New Issue