diff --git a/input.go b/input.go index 45463d08b430b94465c6afa0ea38200ac0cfbbf7..afa903b9a061fc856991ee4f0727ddc4b1ff6fe5 100644 --- a/input.go +++ b/input.go @@ -186,8 +186,8 @@ const ( KeyLast = Button(glfw.KeyLast) ) -// Name returns a human-readable string describing the Button. -func (b Button) Name() string { +// String returns a human-readable string describing the Button. +func (b Button) String() string { name, ok := buttonNames[b] if !ok { return "Invalid"