Skip to content

Commit

Permalink
Added: Command "releasemouse"
Browse files Browse the repository at this point in the history
Untraps the mouse.
  • Loading branch information
skyjake committed Apr 5, 2012
1 parent 12039f0 commit 8707fc1
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions doomsday/engine/portable/src/dd_input.c
Expand Up @@ -83,6 +83,7 @@ D_CMD(AxisChangeValue);
D_CMD(DumpKeyMap);
D_CMD(KeyMap);
D_CMD(ListInputDevices);
D_CMD(ReleaseMouse);

// PRIVATE FUNCTION PROTOTYPES ---------------------------------------------

Expand Down Expand Up @@ -167,6 +168,8 @@ void DD_RegisterInput(void)
#endif
C_CMD("listinputdevices", "", ListInputDevices);

C_CMD("releasemouse", "", ReleaseMouse);

//C_CMD_FLAGS("setaxis", "s", AxisPrintConfig, CMDF_NO_DEDICATED);
//C_CMD_FLAGS("setaxis", "ss", AxisChangeOption, CMDF_NO_DEDICATED);
//C_CMD_FLAGS("setaxis", "sss", AxisChangeValue, CMDF_NO_DEDICATED);
Expand Down Expand Up @@ -2314,3 +2317,9 @@ D_CMD(ListInputDevices)
}
return true;
}

D_CMD(ReleaseMouse)
{
Window_TrapMouse(Window_Main(), false);
return true;
}

0 comments on commit 8707fc1

Please sign in to comment.