Skip to content

Commit 2b4564d

Browse files
committed
Moved screen related functions to it's own branch.
1 parent 0ff5407 commit 2b4564d

File tree

1 file changed

+0
-32
lines changed

1 file changed

+0
-32
lines changed

src/robotjs.cc

-32
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
#include <vector>
44
#include "mouse.h"
55
#include "deadbeef_rand.h"
6-
#include "screen.h"
7-
#include "screengrab.h"
86
#include "keypress.h"
97

108
using namespace v8;
@@ -108,33 +106,6 @@ Handle<Value> typeString(const Arguments& args)
108106
return scope.Close(String::New("1"));
109107
}
110108

111-
/*
112-
_____
113-
/ ____|
114-
| (___ ___ _ __ ___ ___ _ __
115-
\___ \ / __| '__/ _ \/ _ \ '_ \
116-
____) | (__| | | __/ __/ | | |
117-
|_____/ \___|_| \___|\___|_| |_|
118-
119-
*/
120-
121-
Handle<Value> captureScreen(const Arguments& args)
122-
{
123-
HandleScope scope;
124-
125-
MMRect rect;
126-
MMBitmapRef bitmap = NULL;
127-
MMSize displaySize = getMainDisplaySize();
128-
129-
rect = MMRectMake(0, 0, displaySize.width, displaySize.height);
130-
131-
bitmap = copyMMBitmapFromDisplayInRect(rect);
132-
133-
return scope.Close(External::Wrap(bitmap));
134-
135-
//return scope.Close(String::New("1"));
136-
}
137-
138109
void init(Handle<Object> target)
139110
{
140111
target->Set(String::NewSymbol("moveMouse"),
@@ -151,9 +122,6 @@ void init(Handle<Object> target)
151122

152123
target->Set(String::NewSymbol("typeString"),
153124
FunctionTemplate::New(typeString)->GetFunction());
154-
155-
target->Set(String::NewSymbol("captureScreen"),
156-
FunctionTemplate::New(captureScreen)->GetFunction());
157125
}
158126

159127
NODE_MODULE(robotjs, init)

0 commit comments

Comments
 (0)