This commit is contained in:
InventorXtreme 2024-04-21 01:35:16 -04:00
parent 34b3c75bf9
commit d0e7c66c10

View file

@ -1,6 +1,10 @@
package pinwindows
import rl "github.com/gen2brain/raylib-go/raylib"
import (
"fmt"
rl "github.com/gen2brain/raylib-go/raylib"
)
type managewindowfunc func(*RayGuiWindowManager, *RayGuiWindow)
@ -52,6 +56,7 @@ func (winman *RayGuiWindowManager) ProcessUserWindowMovement() {
if winman.movingwindow != nil {
if winman.movingwindowmode == WINDOW_MODE_DRAG {
fmt.Println(rl.GetMouseDelta().X)
winman.movingwindow.Pos.X += (rl.GetMouseDelta().X)
winman.movingwindow.Pos.Y += (rl.GetMouseDelta().Y)
}