#1695 closed defect
ALL: Fullscreen/window switching - Return != Enter
Reported by: | SF/swanson | Owned by: | fingolfin |
---|---|---|---|
Priority: | normal | Component: | --Other-- |
Version: | Keywords: | ||
Cc: | Game: |
Description
The SDL standard for switching between fullscreen and windowed mode is Alt-Enter as documented in the README. However ScummVM actually uses Return, not the normal keypad Enter key.
In backends/sdl/events.cpp the following line should be changed from;
if (b == KBD_ALT && ev.key.keysym.sym == SDLK_RETURN) {
To;
if (b == KBD_ALT && ev.key.keysym.sym == SDLK_KP_ENTER) {
Or alternatively;
if (b == KBD_ALT && (ev.key.keysym.sym == SDLK_KP_ENTER || ev.key.keysym.sym == SDLK_KP_ENTER)) {
Same in the backends/wince directory.
Ticket imported from: #1001126. Ticket imported from: bugs/1695.
Change History (5)
comment:1 by , 20 years ago
comment:2 by , 20 years ago
Ah. I already wondered why "Alt-Enter" is a "standard", that was new to me. :-) Though googling for it reveals a lot of programs using it for that purpose -- wow, never knew.
So we should indeed do it the second way: People are used to Alt-Return by now, adding Alt-Enter as an additional possibility won't hurt, IMO.
comment:3 by , 20 years ago
Owner: | set to |
---|---|
Status: | new → closed |
comment:4 by , 6 years ago
Component: | → --Other-- |
---|
To clarify, I've always used Alt-KP_Enter with Loki games. Using left thumb for ALT and shifting the right thumb from mouse to KP_ENTER, as less movement required ;-)
Make this an RFE to use either RETURN or KP_ENTER as per the second alternative.