Bug fix: some generators did not work due to a lacked package

Updates #926
This commit is contained in:
Hajime Hoshi 2020-03-23 01:33:29 +09:00
parent 8fcee54849
commit 4d2a0287b5
2 changed files with 8 additions and 2 deletions

View File

@ -15,5 +15,8 @@
package ebiten
//go:generate go run genkeys.go
//go:generate go run genevents.go
//go:generate gofmt -s -w .
// TODO: Add this after event package is added again (#926).
//
// go:generate go run genevents.go

View File

@ -663,8 +663,11 @@ func main() {
sort.Slice(ebitenKeyNamesWithoutMods, keyNamesLess(ebitenKeyNamesWithoutMods))
sort.Slice(driverKeyNames, keyNamesLess(driverKeyNames))
// TODO: Add this line for event package (#926).
//
// filepath.Join("event", "keys.go"): eventKeysTmpl,
for path, tmpl := range map[string]string{
filepath.Join("event", "keys.go"): eventKeysTmpl,
filepath.Join("internal", "driver", "keys.go"): driverKeysTmpl,
filepath.Join("internal", "glfw", "keys.go"): glfwKeysTmpl,
filepath.Join("internal", "uidriver", "glfw", "keys.go"): uidriverGlfwKeysTmpl,