Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var FromNativeKey = map[glfw.Key]input.Key{}/* 120 elements not displayed */
View Source
var FromNativeMouseButton = map[glfw.MouseButton]input.MouseButton{ glfw.MouseButton1: input.MouseButton1, glfw.MouseButton2: input.MouseButton2, glfw.MouseButton3: input.MouseButton3, glfw.MouseButton4: input.MouseButton4, glfw.MouseButton5: input.MouseButton5, glfw.MouseButton6: input.MouseButton6, glfw.MouseButton7: input.MouseButton7, glfw.MouseButton8: input.MouseButton8, }
View Source
var ToNativeKey = map[input.Key]glfw.Key{}/* 120 elements not displayed */
View Source
var ToNativeMouseButton = map[input.MouseButton]glfw.MouseButton{ input.MouseButton1: glfw.MouseButton1, input.MouseButton2: glfw.MouseButton2, input.MouseButton3: glfw.MouseButton3, input.MouseButton4: glfw.MouseButton4, input.MouseButton5: glfw.MouseButton5, input.MouseButton6: glfw.MouseButton6, input.MouseButton7: glfw.MouseButton7, input.MouseButton8: glfw.MouseButton8, }
Functions ¶
func IsKeyPressed ¶
Provides a way to query whether a key is being pressed without having to keep state in the application.
Accepts a native window to prevent circular imports with cosmic package.
func IsMouseButtonPressed ¶
func IsMouseButtonPressed(mouseButton input.MouseButton, nativeWindow interface{}) bool
Provides a way to query whether a mouse button is being pressed without having to keep state in the application.
Accepts a native window to prevent circular imports with cosmic package.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.