History

Merge pull request #4252 from thoys/20224

CR for Job #20224 - Make virtualKeyboard.js go to locations and support gamepads

Andrew Meadows committed 11 years ago

Commit d896f3a2 parents ac93f86 062c2cb11 files · +749 −259Browse files

Showing the changes to interface/src/ui/ApplicationOverlay.cpp (1 of 11 files). Show all

Unified · Split

interface/src/ui/ApplicationOverlay.cpp+5−1
@@ -139,6 +139,7 @@ ApplicationOverlay::ApplicationOverlay() : · 138 unmodified lines
139139 _alpha(1.0f),
140140 _oculusUIRadius(1.0f),
141141 _crosshairTexture(0),
142+ _magnifier(true),
142143 _previousBorderWidth(-1),
143144 _previousBorderHeight(-1),
144145 _previousMagnifierBottomLeft(),
@@ -559,7 +560,7 @@ void ApplicationOverlay::renderPointers() { · 414 unmodified lines
559560
560561 _reticlePosition[MOUSE] = position;
561562 _reticleActive[MOUSE] = true;
562− _magActive[MOUSE] = true;
563+ _magActive[MOUSE] = _magnifier;
563564 _reticleActive[LEFT_CONTROLLER] = false;
564565 _reticleActive[RIGHT_CONTROLLER] = false;
565566 } else if (qApp->getLastMouseMoveWasSimulated() && Menu::getInstance()->isOptionChecked(MenuOption::SixenseMouseInput)) {
@@ -718,6 +719,9 @@ void ApplicationOverlay::renderPointersOculus(const glm::vec3& eyePos) { · 152 unmodified lines
718719
719720 //Renders a small magnification of the currently bound texture at the coordinates
720721 void ApplicationOverlay::renderMagnifier(glm::vec2 magPos, float sizeMult, bool showBorder) {
722+ if (!_magnifier) {
723+ return;
724+ }
721725 auto glCanvas = DependencyManager::get<GLCanvas>();
722726
723727 const int widgetWidth = glCanvas->width();

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t