mirror of
https://github.com/ZDoom/Raze.git
synced 2025-06-02 02:01:31 +00:00
- replaced vec2_t with FVector2.
This commit is contained in:
parent
7546cf3a4b
commit
016a907c20
5 changed files with 311 additions and 321 deletions
|
@ -64,10 +64,10 @@ CVAR(Float, m_side, 1.f, CVAR_GLOBALCONFIG | CVAR_ARCHIVE)
|
|||
|
||||
void InputState::GetMouseDelta(ControlInfo * hidInput)
|
||||
{
|
||||
hidInput->mouseturnx = g_mousePos.x * m_yaw * (1.f / 18.f);
|
||||
hidInput->mouseturny = g_mousePos.y * m_pitch * (1.f / 14.f);
|
||||
hidInput->mousemovex = g_mousePos.x * m_side;
|
||||
hidInput->mousemovey = g_mousePos.y * m_forward;
|
||||
hidInput->mouseturnx = g_mousePos.X * m_yaw * (1.f / 18.f);
|
||||
hidInput->mouseturny = g_mousePos.Y * m_pitch * (1.f / 14.f);
|
||||
hidInput->mousemovex = g_mousePos.X * m_side;
|
||||
hidInput->mousemovey = g_mousePos.Y * m_forward;
|
||||
|
||||
g_mousePos = {};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue