Logo Search packages:      
Sourcecode: scummvm version File versions

void Common::EventDispatcher::registerMapper ( EventMapper mapper )

Registers an event mapper with the dispatcher.

The ownership of the "mapper" variable will pass to the EventDispatcher, thus it will be deleted with "delete", when EventDispatcher is destroyed.

Note there is only one mapper per EventDispatcher possible, thus when this method is called twice, the former mapper will be destroied.

Definition at line 74 of file EventDispatcher.cpp.

                                                        {
      delete _mapper;
      _mapper = mapper;
}

Generated by  Doxygen 1.6.0   Back to index