mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-09-18 12:05:14 -04:00
Camera struct was supposed to be exported to plugins, oops
This commit is contained in:
parent
d703f632cd
commit
ca231d854c
@ -9,7 +9,7 @@ struct RayTracer;
|
|||||||
struct Camera;
|
struct Camera;
|
||||||
|
|
||||||
/* Shared data for cameras. */
|
/* Shared data for cameras. */
|
||||||
extern struct _CameraData {
|
CC_VAR extern struct _CameraData {
|
||||||
/* How sensitive camera is to movements of mouse. */
|
/* How sensitive camera is to movements of mouse. */
|
||||||
int Sensitivity;
|
int Sensitivity;
|
||||||
/* Whether smooth/cinematic camera mode is used. */
|
/* Whether smooth/cinematic camera mode is used. */
|
||||||
|
@ -1837,12 +1837,18 @@ static void InitRawMouse(void) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Only XInput 2.0 is actually required. However, 2.0 has the annoying */
|
||||||
|
/* behaviour where raw input is NOT delivered while pointer is grabbed. */
|
||||||
|
/* (i.e. if you press mouse button, no more raw mouse movement events) */
|
||||||
|
/* http://wine.1045685.n8.nabble.com/PATCH-0-9-Implement-DInput8-mouse-using-RawInput-and-XInput2-RawEvents-only-td6016923.html */
|
||||||
|
/* Thankfully XInput >= 2.1 corrects this behaviour */
|
||||||
major = 2; minor = 2;
|
major = 2; minor = 2;
|
||||||
if (XIQueryVersion(win_display, &major, &minor) != Success) {
|
if (XIQueryVersion(win_display, &major, &minor) != Success) {
|
||||||
Platform_Log2("Only XInput %i.%i supported", &major, &minor);
|
Platform_Log2("Only XInput %i.%i supported", &major, &minor);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// todo multiply detla by 2
|
||||||
XISetMask(masks, XI_RawMotion);
|
XISetMask(masks, XI_RawMotion);
|
||||||
evmask.deviceid = XIAllMasterDevices;
|
evmask.deviceid = XIAllMasterDevices;
|
||||||
evmask.mask_len = sizeof(masks);
|
evmask.mask_len = sizeof(masks);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user