mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-23 04:42:32 +00:00
[qwaq] Handle some keys in the editor
Doesn't work yet, though.
This commit is contained in:
parent
a75eeb6955
commit
995074269b
2 changed files with 12 additions and 1 deletions
|
@ -103,7 +103,6 @@ arp_end (void)
|
|||
event.what = qe_none;
|
||||
return self;
|
||||
}
|
||||
[objects handleEvent: event];
|
||||
if (event.what == qe_key
|
||||
&& (event.key.code == '\x18' || event.key.code == '\x11')) {
|
||||
event.what = qe_command;
|
||||
|
@ -114,6 +113,7 @@ arp_end (void)
|
|||
|| event.message.command == qc_error)) {
|
||||
endState = event.message.command;
|
||||
}
|
||||
[objects handleEvent: event];
|
||||
return self;
|
||||
}
|
||||
@end
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
#include <QF/keys.h>
|
||||
#include "color.h"
|
||||
#include "qwaq-editor.h"
|
||||
|
||||
|
@ -54,7 +55,17 @@
|
|||
[self scrollRight: 1];
|
||||
}
|
||||
}
|
||||
} else if (event.what == qe_keydown) {
|
||||
switch (event.key.code) {
|
||||
case QFK_PAGEUP:
|
||||
[self scrollUp: ylen];
|
||||
break;
|
||||
case QFK_PAGEDOWN:
|
||||
[self scrollDown: ylen];
|
||||
break;
|
||||
}
|
||||
}
|
||||
event.what = qe_none;
|
||||
return self;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue