Skip to content
This repository has been archived by the owner on Dec 31, 2022. It is now read-only.

feat: MouseWheel #125

Closed
melaurent opened this issue Nov 9, 2020 · 1 comment
Closed

feat: MouseWheel #125

melaurent opened this issue Nov 9, 2020 · 1 comment

Comments

@melaurent
Copy link
Contributor

I have added a method to get the MouseWheel values from the IO, it is returned as a Vec2 where X is horizontal scroll, and y vertical scroll.
I can create a merge request if people agree with the change
melaurent@cd66bec

@dertseha
Copy link
Member

Hello there and thank you for the message!
Looking at the existing functions, there's AddMouseWheelDelta(horizontal, vertical float32) already. To have it symmetric regarding the axes, I'd go for MouseWheel() (float32, float32), so, returning two raw floating point values.
From a gut feeling these are rather two separate values rather than a combined vector to do math with.

And yes, feel free to do a pull request :)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants