Here is one way to do it in an extended PlayerController, should get you started...
Code:
event PlayerTick( float DeltaTime )
{
local vector mouseVect, upVect, rightVect;
upVect = vect(0,1,0); // (not sure up is positive for mouse stuff)
rightVect = vect(1,0,0); // (not sure right is positive for mouse stuff)
mouseVect = vect(PlayerInput.aMouseX, PlayerInput.aMouseY, 0);
if (mouseVect dot upVect > 0)
{
// mouse was moved up
}
else if (mouseVect dot upVect < 0)
{
// mouse was moved down
}
if (mouseVect dot rightVect > 0)
{
// mouse was moved right
}
else if (mouseVect dot rightVect < 0)
{
// mouse was moved left
}
super.PlayerTick(DeltaTime);
}
Bookmarks