Skip to content

Commit

Permalink
Changed button variable name.
Browse files Browse the repository at this point in the history
  • Loading branch information
octalmage committed Feb 4, 2015
1 parent 3f4918b commit 6113ec5
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/robotjs.cc
Expand Up @@ -73,17 +73,17 @@ NAN_METHOD(mouseClick)

if (args.Length() == 1)
{
char *but = (*v8::String::Utf8Value(args[0]->ToString()));
char *b = (*v8::String::Utf8Value(args[0]->ToString()));

if (strcmp(but, "left") == 0)
if (strcmp(b, "left") == 0)
{
button = LEFT_BUTTON;
}
else if (strcmp(but, "right") == 0)
else if (strcmp(b, "right") == 0)
{
button = RIGHT_BUTTON;
}
else if (strcmp(but, "middle") == 0)
else if (strcmp(b, "middle") == 0)
{
button = CENTER_BUTTON;
}
Expand Down Expand Up @@ -129,17 +129,17 @@ NAN_METHOD(mouseToggle)

if (args.Length() == 2)
{
char *but = (*v8::String::Utf8Value(args[1]->ToString()));
char *b = (*v8::String::Utf8Value(args[1]->ToString()));

if (strcmp(but, "left") == 0)
if (strcmp(b, "left") == 0)
{
button = LEFT_BUTTON;
}
else if (strcmp(but, "right") == 0)
else if (strcmp(b, "right") == 0)
{
button = RIGHT_BUTTON;
}
else if (strcmp(but, "middle") == 0)
else if (strcmp(b, "middle") == 0)
{
button = CENTER_BUTTON;
}
Expand Down

0 comments on commit 6113ec5

Please sign in to comment.