mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-09-13 01:26:50 -04:00
make temp cam_delta float too
This commit is contained in:
parent
c039a2c83b
commit
a7a42f1f5d
@ -14,7 +14,7 @@ struct _CameraData Camera;
|
|||||||
static struct RayTracer cameraClipPos;
|
static struct RayTracer cameraClipPos;
|
||||||
static Vec2 cam_rotOffset;
|
static Vec2 cam_rotOffset;
|
||||||
static cc_bool cam_isForwardThird;
|
static cc_bool cam_isForwardThird;
|
||||||
static int cam_deltaX, cam_deltaY;
|
static float cam_deltaX, cam_deltaY;
|
||||||
|
|
||||||
static void Camera_AcquireFocus(void) {
|
static void Camera_AcquireFocus(void) {
|
||||||
Window_EnableRawMouse();
|
Window_EnableRawMouse();
|
||||||
@ -70,8 +70,8 @@ static Vec2 PerspectiveCamera_GetMouseDelta(double delta) {
|
|||||||
if (newSpeedY * speedY < 0) speedY = 0;
|
if (newSpeedY * speedY < 0) speedY = 0;
|
||||||
else speedY = newSpeedY;
|
else speedY = newSpeedY;
|
||||||
} else {
|
} else {
|
||||||
speedX = (float)cam_deltaX;
|
speedX = cam_deltaX;
|
||||||
speedY = (float)cam_deltaY;
|
speedY = cam_deltaY;
|
||||||
}
|
}
|
||||||
|
|
||||||
v.X = speedX * sensitivity; v.Y = speedY * sensitivity;
|
v.X = speedX * sensitivity; v.Y = speedY * sensitivity;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user