Skip to content

Commit

Permalink
Instantiate EventHandler to bind callbacks
Browse files Browse the repository at this point in the history
  • Loading branch information
rasikhq committed Feb 20, 2020
1 parent e8aaf21 commit a9e13a6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions VCMP-SDK-Sample-Module/Core.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,8 @@ extern "C" EXPORT unsigned int VcmpPluginInit(PluginFuncs* pluginFuncs, PluginCa
signal_onServerPerformanceReport(entryCount, descriptions, times);
};

EventHandler _event_handler;

return 1;
}

Expand Down
2 changes: 1 addition & 1 deletion VCMP-SDK-Sample-Module/include/events/hooks.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#include "events/handlers_Sphere.h"
#include "events/handlers_Checkpoint.h"

class EventHandler {
struct EventHandler {
EventHandler() {
bindEvents_Server();
bindEvents_Client();
Expand Down

0 comments on commit a9e13a6

Please sign in to comment.