glfw

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 19, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var FromNativeKey = map[glfw.Key]input.Key{}/* 120 elements not displayed */
View Source
var ToNativeKey = map[input.Key]glfw.Key{}/* 120 elements not displayed */

Functions

func IsKeyPressed

func IsKeyPressed(key input.Key, nativeWindow interface{}) bool

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.

func NewWindow

func NewWindow(title string, width, height int) *glfwWindow

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL