mirror of
https://github.com/perfect-dark-pc-port/perfect_dark.git
synced 2026-10-23 15:52:41 +02:00
port: fix whitespace in input.c
This commit is contained in:
1 parent
9c98fe7976
commit
790374e95f
1 file changed
+14
-14
+14
-14
@@ -1241,24 +1241,24 @@ void inputMouseGetRawDelta(s32 *dx, s32 *dy)
|
|||||||
|
|
||||||
void inputMouseGetScaledDelta(f32* dx, f32* dy)
|
void inputMouseGetScaledDelta(f32* dx, f32* dy)
|
||||||
{
|
{
|
||||||
f32 mdx = 0.f, mdy = 0.f;
|
f32 mdx = 0.f, mdy = 0.f;
|
||||||
if (mouseLocked) {
|
if (mouseLocked) {
|
||||||
mdx = mouseDX * (0.022f / 3.5f) * mouseSensX;
|
mdx = mouseDX * (0.022f / 3.5f) * mouseSensX;
|
||||||
mdy = mouseDY * (0.022f / 3.5f) * mouseSensY;
|
mdy = mouseDY * (0.022f / 3.5f) * mouseSensY;
|
||||||
}
|
}
|
||||||
if (dx) *dx = mdx;
|
if (dx) *dx = mdx;
|
||||||
if (dy) *dy = mdy;
|
if (dy) *dy = mdy;
|
||||||
}
|
}
|
||||||
|
|
||||||
void inputMouseGetAbsScaledDelta(f32* dx, f32* dy)
|
void inputMouseGetAbsScaledDelta(f32* dx, f32* dy)
|
||||||
{
|
{
|
||||||
f32 mdx = 0.f, mdy = 0.f;
|
f32 mdx = 0.f, mdy = 0.f;
|
||||||
if (mouseLocked) {
|
if (mouseLocked) {
|
||||||
mdx = mouseDX * (0.022f / 3.5f) * fabsf(mouseSensX);
|
mdx = mouseDX * (0.022f / 3.5f) * fabsf(mouseSensX);
|
||||||
mdy = mouseDY * (0.022f / 3.5f) * fabsf(mouseSensY);
|
mdy = mouseDY * (0.022f / 3.5f) * fabsf(mouseSensY);
|
||||||
}
|
}
|
||||||
if (dx) *dx = mdx;
|
if (dx) *dx = mdx;
|
||||||
if (dy) *dy = mdy;
|
if (dy) *dy = mdy;
|
||||||
}
|
}
|
||||||
|
|
||||||
void inputMouseGetSpeed(f32 *x, f32 *y)
|
void inputMouseGetSpeed(f32 *x, f32 *y)
|
||||||
|
|||||||
Reference in new issue
Block a user