mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-28 16:27:17 +00:00
[client] app: fix spelling error
This commit is contained in:
parent
aafdec02df
commit
a00a6429d3
@ -297,7 +297,7 @@ static int sdlEventFilter(void * userdata, SDL_Event * event)
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
app_updateCursorPos(event->motion.x, event->motion.y);
|
app_updateCursorPos(event->motion.x, event->motion.y);
|
||||||
app_handleMouseRelitive(event->motion.xrel, event->motion.yrel,
|
app_handleMouseRelative(event->motion.xrel, event->motion.yrel,
|
||||||
event->motion.xrel, event->motion.yrel);
|
event->motion.xrel, event->motion.yrel);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
@ -455,7 +455,7 @@ static void sdlWarpPointer(int x, int y, bool exiting)
|
|||||||
|
|
||||||
static void sdlRealignPointer(void)
|
static void sdlRealignPointer(void)
|
||||||
{
|
{
|
||||||
app_handleMouseRelitive(0.0, 0.0, 0.0, 0.0);
|
app_handleMouseRelative(0.0, 0.0, 0.0, 0.0);
|
||||||
}
|
}
|
||||||
|
|
||||||
static bool sdlIsValidPointerPos(int x, int y)
|
static bool sdlIsValidPointerPos(int x, int y)
|
||||||
|
@ -757,7 +757,7 @@ static void relativePointerMotionHandler(void * data,
|
|||||||
wl_fixed_t dxW, wl_fixed_t dyW, wl_fixed_t dxUnaccelW,
|
wl_fixed_t dxW, wl_fixed_t dyW, wl_fixed_t dxUnaccelW,
|
||||||
wl_fixed_t dyUnaccelW)
|
wl_fixed_t dyUnaccelW)
|
||||||
{
|
{
|
||||||
app_handleMouseRelitive(
|
app_handleMouseRelative(
|
||||||
wl_fixed_to_double(dxW),
|
wl_fixed_to_double(dxW),
|
||||||
wl_fixed_to_double(dyW),
|
wl_fixed_to_double(dyW),
|
||||||
wl_fixed_to_double(dxUnaccelW),
|
wl_fixed_to_double(dxUnaccelW),
|
||||||
|
@ -808,7 +808,7 @@ static void x11GenericEvent(XGenericEventCookie *cookie)
|
|||||||
app_updateCursorPos(device->event_x, device->event_y);
|
app_updateCursorPos(device->event_x, device->event_y);
|
||||||
|
|
||||||
if (!x11.pointerGrabbed)
|
if (!x11.pointerGrabbed)
|
||||||
app_handleMouseRelitive(0.0, 0.0, 0.0, 0.0);
|
app_handleMouseRelative(0.0, 0.0, 0.0, 0.0);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -857,7 +857,7 @@ static void x11GenericEvent(XGenericEventCookie *cookie)
|
|||||||
prev_axis[0] = axis[0];
|
prev_axis[0] = axis[0];
|
||||||
prev_axis[1] = axis[1];
|
prev_axis[1] = axis[1];
|
||||||
|
|
||||||
app_handleMouseRelitive(axis[0], axis[1], raw_axis[0], raw_axis[1]);
|
app_handleMouseRelative(axis[0], axis[1], raw_axis[0], raw_axis[1]);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -1067,7 +1067,7 @@ static void x11WarpPointer(int x, int y, bool exiting)
|
|||||||
|
|
||||||
static void x11RealignPointer(void)
|
static void x11RealignPointer(void)
|
||||||
{
|
{
|
||||||
app_handleMouseRelitive(0.0, 0.0, 0.0, 0.0);
|
app_handleMouseRelative(0.0, 0.0, 0.0, 0.0);
|
||||||
}
|
}
|
||||||
|
|
||||||
static bool x11IsValidPointerPos(int x, int y)
|
static bool x11IsValidPointerPos(int x, int y)
|
||||||
|
@ -41,7 +41,7 @@ void app_updateCursorPos(double x, double y);
|
|||||||
void app_updateWindowPos(int x, int y);
|
void app_updateWindowPos(int x, int y);
|
||||||
void app_handleResizeEvent(int w, int h, const struct Border border);
|
void app_handleResizeEvent(int w, int h, const struct Border border);
|
||||||
|
|
||||||
void app_handleMouseRelitive(double normx, double normy,
|
void app_handleMouseRelative(double normx, double normy,
|
||||||
double rawx, double rawy);
|
double rawx, double rawy);
|
||||||
|
|
||||||
void app_handleMouseBasic(void);
|
void app_handleMouseBasic(void);
|
||||||
|
@ -266,7 +266,7 @@ void app_handleKeyRelease(int sc)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void app_handleMouseRelitive(double normx, double normy,
|
void app_handleMouseRelative(double normx, double normy,
|
||||||
double rawx, double rawy)
|
double rawx, double rawy)
|
||||||
{
|
{
|
||||||
if (g_cursor.grab)
|
if (g_cursor.grab)
|
||||||
|
Loading…
Reference in New Issue
Block a user