Skip to content

Commit

Permalink
InputHandler doesn't need to be a pointer
Browse files Browse the repository at this point in the history
  • Loading branch information
bhperry committed Jun 14, 2024
1 parent c35ddd9 commit 03e89b6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backends/opengl/window.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ type Window struct {
xpos, ypos, width, height int
}

input *internal.InputHandler
input internal.InputHandler
prevJoy, currJoy, tempJoy internal.JoystickState

buttonCallback func(win *Window, button pixel.Button, action pixel.Action)
Expand All @@ -118,7 +118,7 @@ func NewWindow(cfg WindowConfig) (*Window, error) {
false: glfw.False,
}

w := &Window{bounds: cfg.Bounds, cursorVisible: true, input: &internal.InputHandler{}}
w := &Window{bounds: cfg.Bounds, cursorVisible: true}

flag := false
for _, v := range []int{0, 2, 4, 8, 16} {
Expand Down

0 comments on commit 03e89b6

Please sign in to comment.