Skip to content

Commit

Permalink
Console: Temporarily hardcoded F11 functionality while console open
Browse files Browse the repository at this point in the history
Because the bindings subsystem is not accessible when the console
is open, the F11 is now hardcoded to togglefullscreen/releasemouse
when the console is open.

Todo for later: Revert this when the bindings subsystem gets all events first.
  • Loading branch information
skyjake committed Apr 30, 2012
1 parent 90a6580 commit 8cc2ab5
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion doomsday/engine/portable/src/con_main.c
Expand Up @@ -1561,7 +1561,16 @@ boolean Con_Responder(ddevent_t* ev)
if(!IS_KEY_PRESS(ev))
return false;

// In this case the console is active and operational.
// The console is active and operational.

// Temporary kludge: since bindings are not presently accessible when the
// console is open, use some hardcoded keys.
if(ev->toggle.id == DDKEY_F11)
{
DD_Execute(true, altDown? "releasemouse" : "togglefullscreen");
return true;
}

// Check the shutdown key.
if(!conInputLock)
{
Expand Down

0 comments on commit 8cc2ab5

Please sign in to comment.