static void ICall_Actor_Bind( MonoObject* pMonoObj )
{
	Ptr<Actor> pAct = new Actor();
	printf("new cppObject");
	App::MonoCppBind<Actor>(*pAct,pMonoObj);
	pAct->AddRef();
}
//-----------------------------------------------------------------------------
OVR::HIDDevice* HIDDeviceManager::Open(const String& path)
{
    Ptr<Linux::HIDDevice> device = *new Linux::HIDDevice(this);

    if (device->HIDInitialize(path))
    {
        device->AddRef();        
        return device;
    }

    return NULL;
}
Example #3
0
OVR::HIDDevice* HIDDeviceManager::Open(const String& path)
{

    Ptr<OSX::HIDDevice> device = *new OSX::HIDDevice(this);

    if (!device->HIDInitialize(path))
    {
        return NULL;
    }

    device->AddRef();
    
    return device;
}