Skip to content

Commit 784489d

Browse files
committed
chore : renamed sendButtonPointerEventto sendPointerEventButton
1 parent 2e94385 commit 784489d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

glfw.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ func (m *windowManager) sendPointerEvent(window *glfw.Window, phase embedder.Poi
6464
}
6565
}
6666

67-
func (m *windowManager) sendButtonPointerEvent(window *glfw.Window, phase embedder.PointerPhase, buttons embedder.PointerButtonMouse) {
67+
func (m *windowManager) sendPointerEventButton(window *glfw.Window, phase embedder.PointerPhase, buttons embedder.PointerButtonMouse) {
6868
x, y := window.GetCursorPos()
6969
event := embedder.PointerEvent{
7070
Phase: phase,
@@ -115,12 +115,12 @@ func (m *windowManager) glfwCursorPosCallback(window *glfw.Window, x, y float64)
115115

116116
func (m *windowManager) sendButtonEvent(window *glfw.Window, action glfw.Action, buttons embedder.PointerButtonMouse) {
117117
if action == glfw.Press {
118-
m.sendButtonPointerEvent(window, embedder.PointerPhaseDown, buttons)
118+
m.sendPointerEventButton(window, embedder.PointerPhaseDown, buttons)
119119
m.pointerPhase = embedder.PointerPhaseMove
120120
}
121121

122122
if action == glfw.Release {
123-
m.sendButtonPointerEvent(window, embedder.PointerPhaseUp, buttons)
123+
m.sendPointerEventButton(window, embedder.PointerPhaseUp, buttons)
124124
m.pointerPhase = embedder.PointerPhaseHover
125125
}
126126
}

0 commit comments

Comments
 (0)