Closed Fuuzetsu closed 10 years ago
Sorry, I neglected to handle wheels. Does something like this satisfy? Then I'll add soon.
scrollAmount :: Mouse m => m Vec2 -- Returns the amount of scrolling from the previous frame
That should work. My actual use-case was to be able to detect scroll up/down events by the user like we can do with Key
but we can implement it in terms of scrollAmount
.
Now we have mouseScroll :: Mouse m => m Vec2
since 1.1.80.
I don't see any means of detecting mouse-wheel events, notably scrolling up and down. Am I missing something or is the functionality just missing?