Documentation ¶
Index ¶
Constants ¶
View Source
const ( Press Action = Action(glfw.Press) Release = Action(glfw.Release) Move = Action(4) Scroll = Action(5) Enter = Action(6) Leave = Action(7) )
View Source
const ( Button1 Button = Button(glfw.MouseButton1) Button2 = Button(glfw.MouseButton2) Button3 = Button(glfw.MouseButton3) Button4 = Button(glfw.MouseButton4) Button5 = Button(glfw.MouseButton5) )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Event ¶
type Event interface { Action() Action Button() Button Position() vec2.T Delta() vec2.T Scroll() vec2.T Modifier() keys.Modifier Project(vec2.T) Event Locked() bool Handled() bool Consume() }
func NewButtonEvent ¶
func NewMouseEnterEvent ¶
func NewMouseEnterEvent() Event
func NewMouseLeaveEvent ¶
func NewMouseLeaveEvent() Event
type MouseWrapper ¶
type MouseWrapper interface { Button(w *glfw.Window, button glfw.MouseButton, action glfw.Action, mod glfw.ModifierKey) Move(w *glfw.Window, x, y float64) Scroll(w *glfw.Window, x, y float64) }
func NewWrapper ¶
func NewWrapper(handler Handler) MouseWrapper
Click to show internal directories.
Click to hide internal directories.