File tree 1 file changed +8
-0
lines changed
1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -156,6 +156,13 @@ static void ShowCursor(const v8::FunctionCallbackInfo<v8::Value>& info)
156
156
}
157
157
}
158
158
159
+ static void IsCursorVisible (const v8::FunctionCallbackInfo<v8::Value>& info)
160
+ {
161
+ V8_GET_ISOLATE_CONTEXT_IRESOURCE ();
162
+
163
+ V8_RETURN_BOOLEAN (resource->CursorVisible ());
164
+ }
165
+
159
166
static void GetCursorPos (const v8::FunctionCallbackInfo<v8::Value>& info)
160
167
{
161
168
V8_GET_ISOLATE_CONTEXT_RESOURCE ();
@@ -1028,6 +1035,7 @@ extern V8Module altModule("alt",
1028
1035
V8Helpers::RegisterFunc (exports, " toggleGameControls" , &ToggleGameControls);
1029
1036
V8Helpers::RegisterFunc (exports, " toggleVoiceControls" , &ToggleVoiceControls);
1030
1037
V8Helpers::RegisterFunc (exports, " showCursor" , &ShowCursor);
1038
+ V8Helpers::RegisterFunc (exports, " isCursorVisible" , &IsCursorVisible);
1031
1039
1032
1040
V8Helpers::RegisterFunc (exports, " getCursorPos" , &GetCursorPos);
1033
1041
V8Helpers::RegisterFunc (exports, " setCursorPos" , &SetCursorPos);
You can’t perform that action at this time.
0 commit comments