Ejemplo n.º 1
0
// IsKeyPressed returns a boolean indicating whether key is pressed.
//
// This function is concurrent-safe.
func IsKeyPressed(key Key) bool {
	return ui.CurrentInput().IsKeyPressed(ui.Key(key))
}
Ejemplo n.º 2
0
// IsKeyPressed returns a boolean indicating whether key is pressed.
func IsKeyPressed(key Key) bool {
	return ui.IsKeyPressed(ui.Key(key))
}