root/OpenSceneGraph/trunk/src/osgGA/Device.cpp @ 13890

Revision 13890, 1.2 kB (checked in by robert, 4 hours ago)

From Jannik Heller, "I noticed the rotation in the OrbitManipulator? depends on the framerate. To reproduce this issue, start the osganimate example, rotate the model with the left mouse button, then let go of the mouse button while still moving. You will notice that with V-Sync enabled, the model rotates slower.

The OrbitManipulator? calculates a scale to counteract the framerate dependency, but it turns out this scale wasn't used for the rotation yet."

Line 
1/* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2006 Robert Osfield
2 *
3 * This library is open source and may be redistributed and/or modified under
4 * the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or
5 * (at your option) any later version.  The full license is in LICENSE file
6 * included with this distribution, and on the openscenegraph.org website.
7 *
8 * This library is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
11 * OpenSceneGraph Public License for more details.
12*/
13
14#include <osgGA/Device>
15
16using namespace osgGA;
17
18Device::Device()
19    : osg::Object()
20    , _capabilities(UNKNOWN)
21{
22    setEventQueue(new EventQueue);
23}
24
25Device::Device(const Device& es, const osg::CopyOp& copyop):
26    osg::Object(es,copyop)
27{
28    setEventQueue(new EventQueue);
29}
30
31void Device::sendEvent(const Event& /*event*/)
32{
33    OSG_WARN << "Device::sendEvent not implemented!" << std::endl;
34}
35
36
37void Device::sendEvents(const EventQueue::Events& events)
38{
39    for(EventQueue::Events::const_iterator i = events.begin(); i != events.end(); i++)
40    {
41        sendEvent(**i);
42    }
43}
44
45
46Device::~Device()
47{
48}
Note: See TracBrowser for help on using the browser.