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

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

From Alberto Luaces,"the current code uses the preprocessor for generating the plugin path in
a way that when CMAKE_INSTALL_PREFIX contains something along the lines
of

/usr/x86_64-linux-gnu/

it gets substituted as

/usr/x86_64-1-gnu/

that is, the string is preprocessed again, thereby making changes to
anything that matches any defined symbol, as "linux" in this example
(https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=763816).

Quoting that path directly in CMake scripts solves that problem.
"

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.