parent
54a9ad3204
commit
37724d9297
7 changed files with 64 additions and 12 deletions
|
@ -544,13 +544,19 @@ bool OSystem_SDL_Common::poll_event(Event *event) {
|
|||
break;
|
||||
}
|
||||
#endif
|
||||
// Ctr-Alt-1 till Ctrl-Alt-9 will change the GFX mode
|
||||
if (b == (KBD_CTRL|KBD_ALT) &&
|
||||
(ev.key.keysym.sym>='1') && (ev.key.keysym.sym<='9')) {
|
||||
Property prop;
|
||||
prop.gfx_mode = ev.key.keysym.sym - '1';
|
||||
property(PROP_SET_GFX_MODE, &prop);
|
||||
break;
|
||||
// Ctr-Alt-<key> will change the GFX mode
|
||||
if (b == (KBD_CTRL|KBD_ALT)) {
|
||||
char keys[] = "1234567890";
|
||||
char *ptr;
|
||||
|
||||
ptr = strchr(keys, ev.key.keysym.sym);
|
||||
if (ptr != NULL) {
|
||||
Property prop;
|
||||
|
||||
prop.gfx_mode = ptr - keys;
|
||||
property(PROP_SET_GFX_MODE, &prop);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
#ifdef QTOPIA
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue