some refinement
This commit is contained in:
@@ -2,6 +2,7 @@ package mouse
|
||||
|
||||
import (
|
||||
"git.vezzani.net/ben/games/common/elements/v1"
|
||||
"git.vezzani.net/ben/games/common/geo"
|
||||
"github.com/hajimehoshi/ebiten/v2"
|
||||
"github.com/hajimehoshi/ebiten/v2/inpututil"
|
||||
)
|
||||
@@ -24,8 +25,8 @@ type State struct {
|
||||
Clicked bool
|
||||
}
|
||||
|
||||
func (s *State) Point() elements.Point {
|
||||
return elements.Point{
|
||||
func (s *State) Point() geo.Point {
|
||||
return geo.Point{
|
||||
X: s.X,
|
||||
Y: s.Y,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user