Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
platform_packages_services_VncFlinger
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
LMODroid
platform_packages_services_VncFlinger
Commits
ddaa5683
Commit
ddaa5683
authored
1 year ago
by
Nick
Browse files
Options
Downloads
Patches
Plain Diff
prepare for pointer capture
Change-Id: I80e19676f7261ff423f78a4765ce9aac039434fe
parent
5212b891
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
java/com/libremobileos/vncflinger/VncFlinger.java
+7
-0
7 additions, 0 deletions
java/com/libremobileos/vncflinger/VncFlinger.java
src/vncflinger/AndroidDesktop.h
+1
-1
1 addition, 1 deletion
src/vncflinger/AndroidDesktop.h
src/vncflinger/main.cpp
+8
-0
8 additions, 0 deletions
src/vncflinger/main.cpp
with
16 additions
and
1 deletion
java/com/libremobileos/vncflinger/VncFlinger.java
+
7
−
0
View file @
ddaa5683
...
...
@@ -193,6 +193,11 @@ public class VncFlinger extends Service implements DisplayManager.DisplayListene
mOldPointerIcon
=
icon
;
mOldPointerIconId
=
iconId
;
}
@Override
public
void
onCaptureChanged
(
boolean
enabled
)
throws
RemoteException
{
notifyServerCaptureChanged
(
enabled
);
}
});
inputManager
.
setForceNullCursor
(
true
);
}
else
{
...
...
@@ -391,4 +396,6 @@ public class VncFlinger extends Service implements DisplayManager.DisplayListene
private
native
void
endAudioStreamer
();
private
native
void
notifyServerCursorChanged
(
PointerIcon
icon
);
private
native
void
notifyServerCaptureChanged
(
boolean
enabled
);
}
This diff is collapsed.
Click to expand it.
src/vncflinger/AndroidDesktop.h
+
1
−
1
View file @
ddaa5683
...
...
@@ -68,7 +68,7 @@ class AndroidDesktop : public rfb::SDesktop,
int32_t
mLayerId
=
-
1
;
sp
<
VirtualDisplay
>
mVirtualDisplay
;
int32_t
_width
=
1
,
_height
=
1
,
_rotation
=
0
;
bool
touch
=
false
,
relative
=
false
,
clipboard
=
false
;
bool
touch
=
false
,
relative
=
false
,
clipboard
=
false
,
capture
=
false
;
std
::
mutex
jniConfigMutex
;
private
:
virtual
void
notify
();
...
...
This diff is collapsed.
Click to expand it.
src/vncflinger/main.cpp
+
8
−
0
View file @
ddaa5683
...
...
@@ -115,6 +115,14 @@ extern "C" void Java_com_libremobileos_vncflinger_VncFlinger_notifyServerCursorC
return
;
}
extern
"C"
void
Java_com_libremobileos_vncflinger_VncFlinger_notifyServerCaptureChanged
(
JNIEnv
*
env
,
jboolean
enabled
)
{
if
(
desktop
!=
NULL
)
{
desktop
->
capture
=
enabled
;
}
return
;
}
extern
"C"
jint
Java_com_libremobileos_vncflinger_VncFlinger_initializeVncFlinger
(
JNIEnv
*
env
,
jobject
thiz
,
jobjectArray
command_line_args
)
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment