Guest User

Untitled

a guest
Jan 22nd, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.70 KB | None | 0 0
  1. #include "PDL.h"
  2. #include <syslog.h>
  3.  
  4.  
  5. namespace nme {
  6.  
  7.  
  8. bool LaunchBrowser (const char *inUtf8URL) {
  9.  
  10. PDL_LaunchBrowser (inUtf8URL);
  11. return true;
  12.  
  13. }
  14.  
  15.  
  16. void ExternalInterface_Call (const char *functionName, const char **params, int numParams) {
  17.  
  18. //syslog (LOG_INFO, "Calling JS");
  19.  
  20. PDL_JSRegistrationComplete();
  21. //PDL_CallJS("ready", NULL, 0);
  22. PDL_CallJS (functionName, params, numParams);
  23.  
  24. /*PDL_RegisterJSHandler("setRotationSpeed", setRotationSpeed);
  25. PDL_RegisterJSHandler("setAngle", setRotationSpeed);
  26. PDL_RegisterJSHandler("pause", pause);
  27. PDL_RegisterJSHandler("resume", resume);*/
  28.  
  29. }
  30.  
  31. void VibrateDevice(/*int *period, int *duration*/){
  32. PDL_Vibrate(10, 1000);
  33. }
  34. }
Add Comment
Please, Sign In to add comment