mirror of
https://github.com/OpenDiablo2/OpenDiablo2
synced 2024-11-10 06:16:27 -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
|
|
}
|