updating sample plugin to use lifecycle events.
This commit is contained in:
@@ -364,17 +364,12 @@ int16 NPP_HandleEvent(NPP instance, void* event)
|
|||||||
}
|
}
|
||||||
return 1;
|
return 1;
|
||||||
|
|
||||||
case kPause_ANPEventType:
|
case kLifecycle_ANPEventType:
|
||||||
gLogI.log(instance, kDebug_ANPLogType, "---- %p pause event\n",
|
gLogI.log(instance, kDebug_ANPLogType, "---- %p Lifecycle action=%d",
|
||||||
instance);
|
instance, evt->data.lifecycle.action);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case kResume_ANPEventType:
|
case kTouch_ANPEventType:
|
||||||
gLogI.log(instance, kDebug_ANPLogType, "---- %p resume event\n",
|
|
||||||
instance);
|
|
||||||
break;
|
|
||||||
|
|
||||||
case kTouch_ANPEventType:
|
|
||||||
gLogI.log(instance, kDebug_ANPLogType, "---- %p Touch action=%d [%d %d]",
|
gLogI.log(instance, kDebug_ANPLogType, "---- %p Touch action=%d [%d %d]",
|
||||||
instance, evt->data.touch.action, evt->data.touch.x,
|
instance, evt->data.touch.action, evt->data.touch.x,
|
||||||
evt->data.touch.y);
|
evt->data.touch.y);
|
||||||
|
|||||||
Reference in New Issue
Block a user