You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12 lines
489 B

  1. mergeInto(LibraryManager.library, {
  2. focusHandleAction: function(_name, _str){
  3. if(UnityLoader.SystemInfo.mobile == true){
  4. var _inputTextData = prompt("", Pointer_stringify(_str));
  5. if (_inputTextData == null || _inputTextData == "") {
  6. //canceled text
  7. } else {
  8. //send data to unity
  9. SendMessage(Pointer_stringify(_name), 'ReceiveInputData', _inputTextData);
  10. }
  11. }
  12. },
  13. });