Various work on osgViewer library, including warp point and graphics window resize support
This commit is contained in:
@@ -78,7 +78,7 @@ bool EventQueue::copyEvents(Events& events) const
|
||||
}
|
||||
|
||||
|
||||
void EventQueue::windowResize(int x, int y, unsigned int width, unsigned int height, double time)
|
||||
void EventQueue::windowResize(int x, int y, int width, int height, double time)
|
||||
{
|
||||
_accumulateEventState->setWindowRectangle(x, y, width, height, !_useFixedMouseInputRange);
|
||||
|
||||
|
||||
@@ -70,7 +70,7 @@ GUIEventAdapter::~GUIEventAdapter()
|
||||
{
|
||||
}
|
||||
|
||||
void GUIEventAdapter::setWindowRectangle(int x, int y, unsigned int width, unsigned int height, bool updateMouseRange)
|
||||
void GUIEventAdapter::setWindowRectangle(int x, int y, int width, int height, bool updateMouseRange)
|
||||
{
|
||||
_windowX = x;
|
||||
_windowY = y;
|
||||
|
||||
@@ -232,8 +232,7 @@ bool TrackballManipulator::calcMovement()
|
||||
|
||||
float dx = _ga_t0->getXnormalized()-_ga_t1->getXnormalized();
|
||||
float dy = _ga_t0->getYnormalized()-_ga_t1->getYnormalized();
|
||||
|
||||
|
||||
|
||||
// return if there is no movement.
|
||||
if (dx==0.0f && dy==0.0f)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user