mirror of
https://github.com/OpenDiablo2/OpenDiablo2
synced 2024-11-10 14:26:15 -05:00
20 lines
318 B
Go
20 lines
318 B
Go
package d2term
|
|
|
|
import (
|
|
"github.com/OpenDiablo2/OpenDiablo2/d2core/d2input"
|
|
)
|
|
|
|
func Initialize() (*terminal, error) {
|
|
|
|
term, err := createTerminal()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
if err := d2input.BindHandlerWithPriority(term, d2input.PriorityHigh); err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return term, nil
|
|
}
|