Skip to content

Commit f653b92

Browse files
committed
Convert the rest of the spaces.
1 parent 8ecd518 commit f653b92

File tree

1 file changed

+48
-48
lines changed

1 file changed

+48
-48
lines changed

src/robotjs.cc

+48-48
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ NAN_METHOD(getMousePos)
123123
{
124124
MMPoint pos = getMousePos();
125125

126-
//Return object with .x and .y.
126+
//Return object with .x and .y.
127127
Local<Object> obj = Nan::New<Object>();
128128
Nan::Set(obj, Nan::New("x").ToLocalChecked(), Nan::New((int)pos.x));
129129
Nan::Set(obj, Nan::New("y").ToLocalChecked(), Nan::New((int)pos.y));
@@ -171,7 +171,7 @@ NAN_METHOD(mouseClick)
171171

172172
microsleep(mouseDelay);
173173

174-
info.GetReturnValue().Set(Nan::New(1));
174+
info.GetReturnValue().Set(Nan::New(1));
175175
}
176176

177177
NAN_METHOD(mouseToggle)
@@ -235,7 +235,7 @@ NAN_METHOD(setMouseDelay)
235235

236236
mouseDelay = info[0]->Int32Value();
237237

238-
info.GetReturnValue().Set(Nan::New(1));
238+
info.GetReturnValue().Set(Nan::New(1));
239239
}
240240

241241
NAN_METHOD(scrollMouse)
@@ -282,7 +282,7 @@ NAN_METHOD(scrollMouse)
282282
| ' // _ \ | | | '_ \ / _ \ / _` | '__/ _` |
283283
| . \ __/ |_| | |_) | (_) | (_| | | | (_| |
284284
|_|\_\___|\__, |_.__/ \___/ \__,_|_| \__,_|
285-
|___/
285+
|___/
286286
*/
287287
struct KeyNames
288288
{
@@ -323,7 +323,7 @@ static KeyNames key_names[] =
323323
{ "shift", K_SHIFT },
324324
{ "space", K_SPACE },
325325
{ "printscreen", K_PRINTSCREEN },
326-
326+
327327
{ "audio_mute", K_AUDIO_VOLUME_MUTE },
328328
{ "audio_vol_down", K_AUDIO_VOLUME_DOWN },
329329
{ "audio_vol_up", K_AUDIO_VOLUME_UP },
@@ -336,7 +336,7 @@ static KeyNames key_names[] =
336336
{ "audio_forward", K_AUDIO_FORWARD },
337337
{ "audio_repeat", K_AUDIO_REPEAT },
338338
{ "audio_random", K_AUDIO_RANDOM },
339-
339+
340340
{ "lights_mon_up", K_LIGHTS_MON_UP },
341341
{ "lights_mon_down", K_LIGHTS_MON_DOWN },
342342
{ "lights_kbd_toggle",K_LIGHTS_KBD_TOGGLE },
@@ -384,27 +384,27 @@ int CheckKeyFlags(char* f, MMKeyFlags* flags)
384384
if (strcmp(f, "alt") == 0)
385385
{
386386
*flags = MOD_ALT;
387-
}
388-
else if(strcmp(f, "command") == 0)
387+
}
388+
else if(strcmp(f, "command") == 0)
389389
{
390390
*flags = MOD_META;
391-
}
392-
else if(strcmp(f, "control") == 0)
391+
}
392+
else if(strcmp(f, "control") == 0)
393393
{
394394
*flags = MOD_CONTROL;
395-
}
396-
else if(strcmp(f, "shift") == 0)
395+
}
396+
else if(strcmp(f, "shift") == 0)
397397
{
398398
*flags = MOD_SHIFT;
399399
}
400400
else if(strcmp(f, "none") == 0)
401401
{
402402
*flags = MOD_NONE;
403-
}
404-
else
403+
}
404+
else
405405
{
406406
return -2;
407-
}
407+
}
408408

409409
return 0;
410410
}
@@ -446,10 +446,10 @@ NAN_METHOD(keyTap)
446446
MMKeyFlags flags = MOD_NONE;
447447
MMKeyCode key;
448448

449-
char *k;
449+
char *k;
450450

451-
v8::String::Utf8Value kstr(info[0]->ToString());
452-
k = *kstr;
451+
v8::String::Utf8Value kstr(info[0]->ToString());
452+
k = *kstr;
453453

454454
switch (info.Length())
455455
{
@@ -548,14 +548,14 @@ NAN_METHOD(keyToggle)
548548
switch(CheckKeyCodes(k, &key))
549549
{
550550
case -1:
551-
return Nan::ThrowError("Null pointer in key code.");
551+
return Nan::ThrowError("Null pointer in key code.");
552552
break;
553553
case -2:
554554
return Nan::ThrowError("Invalid key code specified.");
555555
break;
556556
default:
557557
toggleKeyCode(key, down, flags);
558-
microsleep(keyboardDelay);
558+
microsleep(keyboardDelay);
559559
}
560560

561561
info.GetReturnValue().Set(Nan::New(1));
@@ -591,7 +591,7 @@ NAN_METHOD(setKeyboardDelay)
591591
\___ \ / __| '__/ _ \/ _ \ '_ \
592592
___) | (__| | | __/ __/ | | |
593593
|____/ \___|_| \___|\___|_| |_|
594-
594+
595595
*/
596596

597597
NAN_METHOD(getPixelColor)
@@ -614,7 +614,7 @@ NAN_METHOD(getPixelColor)
614614

615615
destroyMMBitmap(bitmap);
616616

617-
info.GetReturnValue().Set(Nan::New(hex).ToLocalChecked());
617+
info.GetReturnValue().Set(Nan::New(hex).ToLocalChecked());
618618
}
619619

620620
NAN_METHOD(getScreenSize)
@@ -633,47 +633,47 @@ NAN_METHOD(getScreenSize)
633633

634634
NAN_MODULE_INIT(InitAll)
635635
{
636-
Nan::Set(target, Nan::New("dragMouse").ToLocalChecked(),
637-
Nan::GetFunction(Nan::New<FunctionTemplate>(dragMouse)).ToLocalChecked());
636+
Nan::Set(target, Nan::New("dragMouse").ToLocalChecked(),
637+
Nan::GetFunction(Nan::New<FunctionTemplate>(dragMouse)).ToLocalChecked());
638638

639-
Nan::Set(target, Nan::New("moveMouse").ToLocalChecked(),
640-
Nan::GetFunction(Nan::New<FunctionTemplate>(moveMouse)).ToLocalChecked());
639+
Nan::Set(target, Nan::New("moveMouse").ToLocalChecked(),
640+
Nan::GetFunction(Nan::New<FunctionTemplate>(moveMouse)).ToLocalChecked());
641641

642-
Nan::Set(target, Nan::New("moveMouseSmooth").ToLocalChecked(),
643-
Nan::GetFunction(Nan::New<FunctionTemplate>(moveMouseSmooth)).ToLocalChecked());
642+
Nan::Set(target, Nan::New("moveMouseSmooth").ToLocalChecked(),
643+
Nan::GetFunction(Nan::New<FunctionTemplate>(moveMouseSmooth)).ToLocalChecked());
644644

645-
Nan::Set(target, Nan::New("getMousePos").ToLocalChecked(),
646-
Nan::GetFunction(Nan::New<FunctionTemplate>(getMousePos)).ToLocalChecked());
645+
Nan::Set(target, Nan::New("getMousePos").ToLocalChecked(),
646+
Nan::GetFunction(Nan::New<FunctionTemplate>(getMousePos)).ToLocalChecked());
647647

648-
Nan::Set(target, Nan::New("mouseClick").ToLocalChecked(),
649-
Nan::GetFunction(Nan::New<FunctionTemplate>(mouseClick)).ToLocalChecked());
648+
Nan::Set(target, Nan::New("mouseClick").ToLocalChecked(),
649+
Nan::GetFunction(Nan::New<FunctionTemplate>(mouseClick)).ToLocalChecked());
650650

651-
Nan::Set(target, Nan::New("mouseToggle").ToLocalChecked(),
652-
Nan::GetFunction(Nan::New<FunctionTemplate>(mouseToggle)).ToLocalChecked());
651+
Nan::Set(target, Nan::New("mouseToggle").ToLocalChecked(),
652+
Nan::GetFunction(Nan::New<FunctionTemplate>(mouseToggle)).ToLocalChecked());
653653

654654
Nan::Set(target, Nan::New("scrollMouse").ToLocalChecked(),
655655
Nan::GetFunction(Nan::New<FunctionTemplate>(scrollMouse)).ToLocalChecked());
656656

657-
Nan::Set(target, Nan::New("setMouseDelay").ToLocalChecked(),
658-
Nan::GetFunction(Nan::New<FunctionTemplate>(setMouseDelay)).ToLocalChecked());
657+
Nan::Set(target, Nan::New("setMouseDelay").ToLocalChecked(),
658+
Nan::GetFunction(Nan::New<FunctionTemplate>(setMouseDelay)).ToLocalChecked());
659659

660-
Nan::Set(target, Nan::New("keyTap").ToLocalChecked(),
661-
Nan::GetFunction(Nan::New<FunctionTemplate>(keyTap)).ToLocalChecked());
660+
Nan::Set(target, Nan::New("keyTap").ToLocalChecked(),
661+
Nan::GetFunction(Nan::New<FunctionTemplate>(keyTap)).ToLocalChecked());
662662

663-
Nan::Set(target, Nan::New("keyToggle").ToLocalChecked(),
664-
Nan::GetFunction(Nan::New<FunctionTemplate>(keyToggle)).ToLocalChecked());
663+
Nan::Set(target, Nan::New("keyToggle").ToLocalChecked(),
664+
Nan::GetFunction(Nan::New<FunctionTemplate>(keyToggle)).ToLocalChecked());
665665

666-
Nan::Set(target, Nan::New("typeString").ToLocalChecked(),
667-
Nan::GetFunction(Nan::New<FunctionTemplate>(typeString)).ToLocalChecked());
666+
Nan::Set(target, Nan::New("typeString").ToLocalChecked(),
667+
Nan::GetFunction(Nan::New<FunctionTemplate>(typeString)).ToLocalChecked());
668668

669-
Nan::Set(target, Nan::New("setKeyboardDelay").ToLocalChecked(),
670-
Nan::GetFunction(Nan::New<FunctionTemplate>(setKeyboardDelay)).ToLocalChecked());
669+
Nan::Set(target, Nan::New("setKeyboardDelay").ToLocalChecked(),
670+
Nan::GetFunction(Nan::New<FunctionTemplate>(setKeyboardDelay)).ToLocalChecked());
671671

672-
Nan::Set(target, Nan::New("getPixelColor").ToLocalChecked(),
673-
Nan::GetFunction(Nan::New<FunctionTemplate>(getPixelColor)).ToLocalChecked());
672+
Nan::Set(target, Nan::New("getPixelColor").ToLocalChecked(),
673+
Nan::GetFunction(Nan::New<FunctionTemplate>(getPixelColor)).ToLocalChecked());
674674

675-
Nan::Set(target, Nan::New("getScreenSize").ToLocalChecked(),
676-
Nan::GetFunction(Nan::New<FunctionTemplate>(getScreenSize)).ToLocalChecked());
675+
Nan::Set(target, Nan::New("getScreenSize").ToLocalChecked(),
676+
Nan::GetFunction(Nan::New<FunctionTemplate>(getScreenSize)).ToLocalChecked());
677677
}
678678

679679
NODE_MODULE(robotjs, InitAll)

0 commit comments

Comments
 (0)