mirror of
https://github.com/moonlight-stream/moonlight-chrome.git
synced 2025-08-17 16:46:31 +00:00
17 lines
609 B
C++
17 lines
609 B
C++
#include "ppapi/cpp/instance.h"
|
|
#include "ppapi/cpp/module.h"
|
|
#include "ppapi/cpp/var.h"
|
|
|
|
#include "nacl_io/nacl_io.h"
|
|
|
|
class MoonlightInstance : public pp::Instance {
|
|
public:
|
|
explicit MoonlightInstance(PP_Instance instance) : pp::Instance(instance) {
|
|
// This function MUST be used otherwise sockets don't work (nacl_io_init() doesn't work!)
|
|
nacl_io_init_ppapi(pp_instance(), pp::Module::Get()->get_browser_interface());
|
|
}
|
|
|
|
virtual ~MoonlightInstance();
|
|
|
|
bool HandleInputEvent(const pp::InputEvent& event);
|
|
}; |