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)
|
||||
)
|
||||
|
||||
// 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"
|
||||
|
|
Loading…
Reference in New Issue