Files
XCEngine/docs/api/XCEngine/Input/InputManager/GetMouseScrollDelta.md

617 B

InputManager::GetMouseScrollDelta

读取当前帧保存的滚轮增量。

float GetMouseScrollDelta() const;

行为说明

当前实现返回内部 m_mouseScrollDelta。该值在 ProcessMouseWheel 中被直接覆盖,而不是累加,并会在 Update 时重置为 0.0f

返回值

  • float - 当前帧保存的滚轮增量。

示例

float scroll = XCEngine::Input::InputManager::Get().GetMouseScrollDelta();

相关文档