You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For things like First-Person games, the cursor should be locked to the window, so moving too far left or right out of the window doesn't stop the gameplay.
The text was updated successfully, but these errors were encountered:
I assume you are talking about desktop, right? FWIIW, I accomplished this by doing this (I do have a "game" using engo that requires the behavior you describe):
// Disable cursor.
if engo.CurrentBackEnd == engo.BackEndGLFW ||
engo.CurrentBackEnd == engo.BackEndVulkan {
glfw.GetCurrentContext().SetInputMode(glfw.CursorMode,
glfw.CursorDisabled)
} else {
panic("Backend does not seem to support mouse capture.")
}
For things like First-Person games, the cursor should be locked to the window, so moving too far left or right out of the window doesn't stop the gameplay.
The text was updated successfully, but these errors were encountered: