Fixed a problem with game controls being active while in the control panel.
The following changes were made:
- A "deui" binding context was added as the topmost one, with a new flag (Acquire All) that acquires all existing devices for the context.
- However, since that doesn't cover the case where no one is requesting the current value for an axis (e.g., while in the control panel), the function I_DeviceReset() was added to clear the relative accumulation of the device's axes. This gets called when the UI mode ends (always called when a context with the Acquire All flag is deactivated).
- When quitting via the menu, the deui binding context gets activated to prevent the player from looking around during the countdown.
Fixed a problem with game controls being active while in the control panel.
The following changes were made:
- A "deui" binding context was added as the topmost one, with a new flag (Acquire All) that acquires all existing devices for the context.
- However, since that doesn't cover the case where no one is requesting the current value for an axis (e.g., while in the control panel), the function I_DeviceReset() was added to clear the relative accumulation of the device's axes. This gets called when the UI mode ends (always called when a context with the Acquire All flag is deactivated).
- When quitting via the menu, the deui binding context gets activated to prevent the player from looking around during the countdown.