mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-19 07:20: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
|
||||
{
|
||||
event.mouse.x -= xpos;
|
||||
event.mouse.y -= ypos;
|
||||
int offset = event.what & qe_positional;
|
||||
|
||||
if (offset) {
|
||||
event.mouse.x -= xpos;
|
||||
event.mouse.y -= ypos;
|
||||
}
|
||||
[objects handleEvent: event];
|
||||
event.mouse.x += xpos;
|
||||
event.mouse.y += ypos;
|
||||
if (offset) {
|
||||
event.mouse.x += xpos;
|
||||
event.mouse.y += ypos;
|
||||
}
|
||||
return self;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue