示例#1
0
// IsMouseButtonPressed returns a boolean indicating whether mouseButton is pressed.
//
// This function is concurrent-safe.
//
// Note that touch events not longer affect this function's result as of 1.4.0-alpha.
// Use Touches instead.
func IsMouseButtonPressed(mouseButton MouseButton) bool {
	return ui.CurrentInput().IsMouseButtonPressed(ui.MouseButton(mouseButton))
}
示例#2
0
// IsMouseButtonPressed returns a boolean indicating whether mouseButton is pressed.
func IsMouseButtonPressed(mouseButton MouseButton) bool {
	return ui.IsMouseButtonPressed(ui.MouseButton(mouseButton))
}