mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-24 02:38:53 +01:00
examples/gamepad: Simplify the message
This commit is contained in:
parent
79e46c555e
commit
0357f80411
@ -62,16 +62,7 @@ func update(screen *ebiten.Image) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
ids := []string{}
|
||||
for i, p := range presences {
|
||||
if p {
|
||||
ids = append(ids, strconv.Itoa(i))
|
||||
}
|
||||
}
|
||||
|
||||
str := fmt.Sprintf("Gamepad (%s)\n", strings.Join(ids, ","))
|
||||
str += "\n"
|
||||
|
||||
str := ""
|
||||
for i, p := range presences {
|
||||
if !p {
|
||||
continue
|
||||
|
Loading…
Reference in New Issue
Block a user