File tree 1 file changed +17
-0
lines changed
1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -573,6 +573,20 @@ NAN_METHOD(typeString)
573
573
info.GetReturnValue ().Set (Nan::New (1 ));
574
574
}
575
575
576
+ NAN_METHOD (typeStringDelayed)
577
+ {
578
+ char *str;
579
+ Nan::Utf8String string (info[0 ]);
580
+
581
+ str = *string;
582
+
583
+ size_t cpm = info[1 ]->Int32Value ();
584
+
585
+ typeStringDelayed (str, cpm);
586
+
587
+ info.GetReturnValue ().Set (Nan::New (1 ));
588
+ }
589
+
576
590
NAN_METHOD (setKeyboardDelay)
577
591
{
578
592
if (info.Length () != 1 )
@@ -666,6 +680,9 @@ NAN_MODULE_INIT(InitAll)
666
680
Nan::Set (target, Nan::New (" typeString" ).ToLocalChecked (),
667
681
Nan::GetFunction (Nan::New<FunctionTemplate>(typeString)).ToLocalChecked ());
668
682
683
+ Nan::Set (target, Nan::New (" typeStringDelayed" ).ToLocalChecked (),
684
+ Nan::GetFunction (Nan::New<FunctionTemplate>(typeStringDelayed)).ToLocalChecked ());
685
+
669
686
Nan::Set (target, Nan::New (" setKeyboardDelay" ).ToLocalChecked (),
670
687
Nan::GetFunction (Nan::New<FunctionTemplate>(setKeyboardDelay)).ToLocalChecked ());
671
688
You can’t perform that action at this time.
0 commit comments