Navigation Menu

Skip to content

Commit

Permalink
[MouseEvent] add stub for updateAfterEvent
Browse files Browse the repository at this point in the history
  • Loading branch information
dbluelle committed May 10, 2015
1 parent 719841e commit 90ec5f8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
6 changes: 6 additions & 0 deletions src/scripting/flash/events/flashevents.cpp
Expand Up @@ -291,6 +291,7 @@ void MouseEvent::sinit(Class_base* c)
c->setVariableByQName("RIGHT_CLICK","",Class<ASString>::getInstanceS("rightClick"),DECLARED_TRAIT);
c->setVariableByQName("ROLL_OVER","",Class<ASString>::getInstanceS("rollOver"),DECLARED_TRAIT);
c->setVariableByQName("ROLL_OUT","",Class<ASString>::getInstanceS("rollOut"),DECLARED_TRAIT);
c->setDeclaredMethodByQName("updateAfterEvent","",Class<IFunction>::getFunction(updateAfterEvent),NORMAL_METHOD,true);

REGISTER_GETTER(c,relatedObject);
REGISTER_GETTER(c,stageX);
Expand Down Expand Up @@ -443,6 +444,11 @@ ASFUNCTIONBODY(MouseEvent,_setter_shiftKey)
th->modifiers |= GDK_SHIFT_MASK;
return NULL;
}
ASFUNCTIONBODY(MouseEvent,updateAfterEvent)
{
LOG(LOG_NOT_IMPLEMENTED,"MouseEvent::updateAfterEvent not implemented");
return NULL;
}

void MouseEvent::buildTraits(ASObject* o)
{
Expand Down
3 changes: 2 additions & 1 deletion src/scripting/flash/events/flashevents.h
Expand Up @@ -284,7 +284,8 @@ class MouseEvent: public Event
ASFUNCTION_GETTER_SETTER(shiftKey);
ASPROPERTY_GETTER(number_t,stageX);
ASPROPERTY_GETTER(number_t,stageY);
ASPROPERTY_GETTER(_NR<InteractiveObject>,relatedObject);
ASPROPERTY_GETTER(_NR<InteractiveObject>,relatedObject);
ASFUNCTION(updateAfterEvent);
};

class InvokeEvent: public Event
Expand Down

0 comments on commit 90ec5f8

Please sign in to comment.