fixed lint errors in d2input (#693)

This commit is contained in:
lord 2020-08-05 10:51:35 -07:00 committed by GitHub
parent 04275eb8b6
commit 0a6915a040
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View File

@ -19,7 +19,8 @@ type inputManager struct {
entries handlerEntryList
}
func New() d2interface.InputManager {
// NewInputManager returns a new input manager instance
func NewInputManager() d2interface.InputManager {
return &inputManager{
inputService: ebiten_input.InputService{},
}

View File

@ -39,7 +39,7 @@ func main() {
panic(err)
}
inputManager := d2input.New()
inputManager := d2input.NewInputManager()
term, err := d2term.New(inputManager)
if err != nil {
log.Fatal(err)