rename Button.Name -> String
This commit is contained in:
parent
df21279536
commit
e670735858
4
input.go
4
input.go
|
@ -186,8 +186,8 @@ const (
|
||||||
KeyLast = Button(glfw.KeyLast)
|
KeyLast = Button(glfw.KeyLast)
|
||||||
)
|
)
|
||||||
|
|
||||||
// Name returns a human-readable string describing the Button.
|
// String returns a human-readable string describing the Button.
|
||||||
func (b Button) Name() string {
|
func (b Button) String() string {
|
||||||
name, ok := buttonNames[b]
|
name, ok := buttonNames[b]
|
||||||
if !ok {
|
if !ok {
|
||||||
return "Invalid"
|
return "Invalid"
|
||||||
|
|
Loading…
Reference in New Issue