HGE::Input_GetMouseWheel

Returns the mouse wheel shift since the previous call to frame function.

int Input_GetMouseWheel();

Return value

Returns the number of notches the mouse wheel was rotated through since the previous call to frame function. A positive value indicates that the wheel was rotated forward, away from the user; a negative value indicates that the wheel was rotated backward, toward the user. If the wheel has been still, returns 0.

Requirements

Header: hge.h
Import library: hge.lib

See also

Input_GetMousePos, Input_SetMousePos, Input_GetKeyState, Input_GetKey