mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-19 15:30:50 +00:00
[qwaq] Offset event coords only when positional
This fixes pgup/pgdn not working in the editor.
This commit is contained in:
parent
995074269b
commit
148a351e94
1 changed files with 10 additions and 4 deletions
|
@ -155,11 +155,17 @@
|
||||||
|
|
||||||
-handleEvent: (qwaq_event_t *) event
|
-handleEvent: (qwaq_event_t *) event
|
||||||
{
|
{
|
||||||
event.mouse.x -= xpos;
|
int offset = event.what & qe_positional;
|
||||||
event.mouse.y -= ypos;
|
|
||||||
|
if (offset) {
|
||||||
|
event.mouse.x -= xpos;
|
||||||
|
event.mouse.y -= ypos;
|
||||||
|
}
|
||||||
[objects handleEvent: event];
|
[objects handleEvent: event];
|
||||||
event.mouse.x += xpos;
|
if (offset) {
|
||||||
event.mouse.y += ypos;
|
event.mouse.x += xpos;
|
||||||
|
event.mouse.y += ypos;
|
||||||
|
}
|
||||||
return self;
|
return self;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue