clarify GetWheelRotation() (bug 969231)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42369 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -319,12 +319,11 @@ wheel action. Defaults to three.
|
|||||||
\constfunc{int}{GetWheelRotation}{\void}
|
\constfunc{int}{GetWheelRotation}{\void}
|
||||||
|
|
||||||
Get wheel rotation, positive or negative indicates direction of
|
Get wheel rotation, positive or negative indicates direction of
|
||||||
rotation. Current devices all send an event when rotation is equal to
|
rotation. Current devices all send an event when rotation is at least
|
||||||
+/-WheelDelta, but this allows for finer resolution devices to be
|
+/-WheelDelta, but finer resolution devices can be created in the future.
|
||||||
created in the future. Because of this you shouldn't assume that one
|
Because of this you shouldn't assume that one event is equal to 1 line, but you
|
||||||
event is equal to 1 line or whatever, but you should be able to either
|
should be able to either do partial line scrolling or wait until several
|
||||||
do partial line scrolling or wait until +/-WheelDelta rotation values
|
events accumulate before scrolling.
|
||||||
have been accumulated before scrolling.
|
|
||||||
|
|
||||||
|
|
||||||
\membersection{wxMouseEvent::GetWheelDelta}\label{wxmouseeventgetwheeldelta}
|
\membersection{wxMouseEvent::GetWheelDelta}\label{wxmouseeventgetwheeldelta}
|
||||||
|
Reference in New Issue
Block a user