internal/ui: unify the receivers for UI

This commit is contained in:
Hajime Hoshi
2023-10-15 02:51:23 +09:00
parent 77bdbac244
commit 69f1fa5f29
16 changed files with 230 additions and 230 deletions
+2 -2
View File
@@ -26,7 +26,7 @@ type TouchForInput struct {
Y float64
}
func (u *userInterfaceImpl) updateInputStateFromOutside(keys map[Key]struct{}, runes []rune, touches []TouchForInput) {
func (u *UserInterface) updateInputStateFromOutside(keys map[Key]struct{}, runes []rune, touches []TouchForInput) {
u.m.Lock()
defer u.m.Unlock()
@@ -43,7 +43,7 @@ func (u *userInterfaceImpl) updateInputStateFromOutside(keys map[Key]struct{}, r
}
}
func (u *userInterfaceImpl) updateInputState() error {
func (u *UserInterface) updateInputState() error {
u.m.Lock()
defer u.m.Unlock()