examples/gamepad: Simplify the message

This commit is contained in:
Hajime Hoshi 2017-10-26 03:52:23 +09:00
parent 79e46c555e
commit 0357f80411

View File

@ -62,16 +62,7 @@ func update(screen *ebiten.Image) error {
return nil return nil
} }
ids := []string{} str := ""
for i, p := range presences {
if p {
ids = append(ids, strconv.Itoa(i))
}
}
str := fmt.Sprintf("Gamepad (%s)\n", strings.Join(ids, ","))
str += "\n"
for i, p := range presences { for i, p := range presences {
if !p { if !p {
continue continue