mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-11-10 04:57:26 +01:00
exp/textinput: refactoring
This commit is contained in:
parent
0a20670f3f
commit
0fa39182cb
@ -59,10 +59,7 @@ var theTextInput textInput
|
||||
func (t *textInput) Start(x, y int) (chan State, func()) {
|
||||
var session *session
|
||||
ui.Get().RunOnMainThread(func() {
|
||||
if t.session != nil {
|
||||
t.session.end()
|
||||
t.session = nil
|
||||
}
|
||||
t.end()
|
||||
C.start(C.int(x), C.int(y))
|
||||
session = newSession()
|
||||
t.session = session
|
||||
|
Loading…
Reference in New Issue
Block a user