From Ole-Morten Duesund, added IgnoreUsedEventsMask.
This commit is contained in:
parent
89428f743a
commit
290adbe7ab
@ -34,22 +34,22 @@ public:
|
|||||||
|
|
||||||
enum EventType {
|
enum EventType {
|
||||||
NONE=0,
|
NONE=0,
|
||||||
PUSH,
|
PUSH=1,
|
||||||
RELEASE,
|
RELEASE=2,
|
||||||
DOUBLECLICK,
|
DOUBLECLICK=4,
|
||||||
DRAG,
|
DRAG=8,
|
||||||
MOVE,
|
MOVE=16,
|
||||||
KEYDOWN,
|
KEYDOWN=32,
|
||||||
KEYUP,
|
KEYUP=64,
|
||||||
FRAME,
|
FRAME=128,
|
||||||
RESIZE,
|
RESIZE=256,
|
||||||
SCROLL,
|
SCROLL=512,
|
||||||
PEN_PRESSURE,
|
PEN_PRESSURE=1024,
|
||||||
PEN_PROXIMITY_ENTER,
|
PEN_PROXIMITY_ENTER=2048,
|
||||||
PEN_PROXIMITY_LEAVE,
|
PEN_PROXIMITY_LEAVE=4096,
|
||||||
CLOSE_WINDOW,
|
CLOSE_WINDOW=8192,
|
||||||
QUIT_APPLICATION,
|
QUIT_APPLICATION=16384,
|
||||||
USER
|
USER=32768
|
||||||
};
|
};
|
||||||
|
|
||||||
enum KeySymbol
|
enum KeySymbol
|
||||||
|
@ -51,7 +51,7 @@ class OSGGA_EXPORT GUIEventHandler : public osg::NodeCallback, public osg::Drawa
|
|||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
|
||||||
GUIEventHandler() {}
|
GUIEventHandler() : _ignoreUsedEventsMask(GUIEventAdapter::NONE) {}
|
||||||
GUIEventHandler(const GUIEventHandler&,const osg::CopyOp&) {}
|
GUIEventHandler(const GUIEventHandler&,const osg::CopyOp&) {}
|
||||||
|
|
||||||
META_Object(osgGA,GUIEventHandler);
|
META_Object(osgGA,GUIEventHandler);
|
||||||
@ -70,6 +70,15 @@ public:
|
|||||||
|
|
||||||
/** Get the keyboard and mouse usage of this manipulator.*/
|
/** Get the keyboard and mouse usage of this manipulator.*/
|
||||||
virtual void getUsage(osg::ApplicationUsage&) const {}
|
virtual void getUsage(osg::ApplicationUsage&) const {}
|
||||||
|
|
||||||
|
/** Set a mask of osgGA::GUIEeventAdapter::Event to be ignored if marked as handled */
|
||||||
|
void setIgnoreUsedEventsMask(unsigned int mask) { _ignoreUsedEventsMask = mask; }
|
||||||
|
|
||||||
|
unsigned int getIgnoreUsedEventsMask() const { return _ignoreUsedEventsMask; };
|
||||||
|
|
||||||
|
protected:
|
||||||
|
unsigned int _ignoreUsedEventsMask;
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
#ifdef USE_DEPRECATED_API
|
#ifdef USE_DEPRECATED_API
|
||||||
|
Loading…
Reference in New Issue
Block a user