Added initializers

This commit is contained in:
Robert Osfield 2016-06-24 12:11:09 +01:00
parent fe28b26171
commit b9c3377d88
2 changed files with 8 additions and 6 deletions

View File

@ -24,11 +24,12 @@ namespace osgGA {
class OSGGA_EXPORT Device : public osg::Object
{
public:
enum {
enum Capabilities
{
UNKNOWN = 0,
RECEIVE_EVENTS = 1,
SEND_EVENTS = 2
} Capabilities;
};
Device();
Device(const Device& es, const osg::CopyOp& copyop);

View File

@ -15,15 +15,16 @@
using namespace osgGA;
Device::Device()
: osg::Object()
, _capabilities(UNKNOWN)
Device::Device():
osg::Object(),
_capabilities(UNKNOWN)
{
setEventQueue(new EventQueue);
}
Device::Device(const Device& es, const osg::CopyOp& copyop):
osg::Object(es,copyop)
osg::Object(es,copyop),
_capabilities(es._capabilities)
{
setEventQueue(new EventQueue);
}