Forum Discussion
kamau00
12 years agoExplorer
mouse movement & the cursor
I discovered yesterday that there is a hidden mouse cursor that is causing the 20-30 degree delay before the mouse starts moving the view (you can see it by pressing F1). I want the mouse cursor to be disabled so that the mouse instantly moves the view. I posted on the UDK forums and on a UDK chat channel and got radio silence.
I was looking at PlayerController this morning and found the code below. This seems be in the "area" that controls the mouse. I would need to fiddle with it (maybe adjust OC.MouseAimLimit) but I was wondering if there was a quick way to disable this mouse cursor thingy? This has to be a common issue with UDK Rift developers.
I was looking at PlayerController this morning and found the code below. This seems be in the "area" that controls the mouse. I would need to fiddle with it (maybe adjust OC.MouseAimLimit) but I was wondering if there was a quick way to disable this mouse cursor thingy? This has to be a common issue with UDK Rift developers.
// Oculus
OC = class'Oculus'.static.GetGlobals();
if (class'Oculus'.static.IsEnabled() && OC != None && OC.IsPlayer(self))
{
if (OC.bDisableControllerPitch)
DeltaRot.Pitch = 0;
MouseAim.Yaw += PlayerInput.aMouseAimX;
MouseAim.Pitch += PlayerInput.aMouseAimY;
MouseAim = Normalize(MouseAim);
if (MouseAim.Yaw >= OC.MouseAimLimit)
{
DeltaRot.Yaw += (MouseAim.Yaw - OC.MouseAimLimit);
MouseAim.Yaw = OC.MouseAimLimit;
}
else if (MouseAim.Yaw <= -OC.MouseAimLimit)
{
DeltaRot.Yaw += (MouseAim.Yaw + OC.MouseAimLimit);
MouseAim.Yaw = -OC.MouseAimLimit;
}
if (MouseAim.Pitch >= OC.MouseAimPitchLimit)
MouseAim.Pitch = OC.MouseAimPitchLimit;
else if (MouseAim.Pitch <= -OC.MouseAimPitchLimit)
MouseAim.Pitch = -OC.MouseAimPitchLimit;
}
2 Replies
Replies have been turned off for this discussion
Quick Links
- Horizon Developer Support
- Quest User Forums
- Troubleshooting Forum for problems with a game or app
- Quest Support for problems with your device
Other Meta Support
Related Content
- 4 years ago
- 10 months ago