Skip to content

Commit

Permalink
Fixed|UI|Client: Show projected mouse cursor in all displacing VR modes
Browse files Browse the repository at this point in the history
All VR modes that move window content around should use the custom cursor
since it will then be appropriately duplicated in the per-eye views.

IssueID #1941
  • Loading branch information
skyjake committed Mar 5, 2015
1 parent b00c4e6 commit fad9c76
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion doomsday/apps/client/src/ui/clientwindow.cpp
Expand Up @@ -787,8 +787,9 @@ DENG2_PIMPL(ClientWindow)
void updateMouseCursor()
{
// The cursor is only needed if the content is warped.
cursor->show(!self.canvas().isMouseTrapped() && vrCfg().mode() == VRConfig::OculusRift);
cursor->show(!self.canvas().isMouseTrapped() && VRConfig::modeAppliesDisplacement(vrCfg().mode()));

// Show or hide the native mouse cursor.
if(cursor->isVisible())
{
if(!cursorHasBeenHidden)
Expand Down

0 comments on commit fad9c76

Please sign in to comment.