mirror of https://github.com/liamg/aminal.git
Fix stupid input bug
This commit is contained in:
parent
97b6a41eb3
commit
c13036db01
|
@ -35,7 +35,7 @@ var defaultTheme = Theme{
|
|||
BrightMagenta: "#c397d8",
|
||||
BrightCyan: "#70c0b1",
|
||||
BrightWhite: "#eaeaea",
|
||||
Background: "#1d1f21",
|
||||
Background: "#000000",
|
||||
Foreground: "#c5c8c6",
|
||||
SelectionBackground: "#33aa33",
|
||||
SelectionForeground: "#ffffff",
|
||||
|
|
|
@ -103,7 +103,7 @@ func (g *GUI) watchForUpdate() {
|
|||
for range g.updateChan {
|
||||
ebiten.ScheduleFrame()
|
||||
go func() {
|
||||
for g.keyState.AnythingPressed() {
|
||||
if g.keyState.AnythingPressed() {
|
||||
time.Sleep(time.Millisecond * 10)
|
||||
ebiten.ScheduleFrame()
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue