1
1
mirror of https://github.com/OpenDiablo2/OpenDiablo2 synced 2024-12-26 03:56:42 -05:00

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 entries handlerEntryList
} }
func New() d2interface.InputManager { // NewInputManager returns a new input manager instance
func NewInputManager() d2interface.InputManager {
return &inputManager{ return &inputManager{
inputService: ebiten_input.InputService{}, inputService: ebiten_input.InputService{},
} }

View File

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