Handle relative mouse mode mouse pos for imgui

This commit is contained in:
bloeys
2024-04-11 22:12:33 +04:00
parent 20ed804d2a
commit 01f06cce1e
2 changed files with 15 additions and 6 deletions

View File

@ -274,6 +274,8 @@ func (g *OurGame) Init() {
//Lights
simpleMat.SetUnifVec3("lightPos1", lightPos1)
simpleMat.SetUnifVec3("lightColor1", lightColor1)
sdl.SetRelativeMouseMode(true)
}
func (g *OurGame) Update() {