Project

General

Profile

Bug #592

Reset look angle/dir when closing the control panel

Added by danij almost 16 years ago. Updated about 12 years ago.

Status:
Closed
Priority:
Low
Assignee:
Category:
-
Target version:
-
Start date:
2009-01-17
% Done:

100%


Description

Currently, the console player's look angle and direction will warp once they leave the control panel. It would be nice if we could re-align the positions so that when returning to the game; the player is still looking in the same direction as when they opened the control panel.

Labels: Controllers

History

#1 Updated by skyjake almost 16 years ago

The issue is that the input code is updating the relative position of the mouse (and other) axes while the user is in the control panel. When returning to the game, all the movements are applied to the player view angle (or other bound controls).

One solution would be to add a "controller freeze" mode which would prevent all game controllers from being effective. This would also fix the issue that after pressing "Y" to quit in the menu, the mouse can still be used for looking around during the pre-quit countdown and random monster sound. (How about adding a fade-to-black effect during the countdown, btw?)

#2 Updated by danij almost 16 years ago

Just a thought but wouldn't implementing a bind context for use within the control panel that grabs the devices have much the same affect? We will probably want to do that anyway soon.

I like the fade to black idea.

#3 Updated by skyjake almost 16 years ago

Fixed in revision 6241. Adding a new binding context wasn't enough, though, since the relative accumulation is only cleared when someone is querying for the axis value, and that only occurs when the game is running. Thus a device reset was also necessary.

The fade-to-black isn't done in this commit.

#4 Updated by danij almost 16 years ago

Nice work, though, I've just noticed the same issue occurs when closing the game menu.

#5 Updated by danij over 15 years ago

The aforementioned issue with the relative axis positions changing whilst the menu is open has since been fixed.

Also available in: Atom PDF