Skip to content

Commit

Permalink
Merge pull request #113 from dusk125/v2
Browse files Browse the repository at this point in the history
fix mouse input scroll (#108)
  • Loading branch information
dusk125 authored Aug 21, 2024
2 parents c3b45d9 + cd044ae commit 9fd56cc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backends/opengl/input.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,11 @@ func (w *Window) MouseInsideWindow() bool {

// MouseScroll returns the mouse scroll amount (in both axes) since the last call to Window.Update.
func (w *Window) MouseScroll() pixel.Vec {
return w.input.Curr.Mouse
return w.input.Curr.Scroll
}

func (w *Window) MousePreviousScroll() pixel.Vec {
return w.input.Prev.Mouse
return w.input.Prev.Scroll
}

// Typed returns the text typed on the keyboard since the last call to Window.Update.
Expand Down

0 comments on commit 9fd56cc

Please sign in to comment.