mirror of
https://github.com/budtmo/docker-android.git
synced 2026-04-25 12:15:52 +03:00
[GH-ISSUE #128] Moving inside emulator virtualscene keys not working #90
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/docker-android#90
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @marad9016100 on GitHub (Oct 30, 2018).
Original GitHub issue: https://github.com/budtmo/docker-android/issues/128
Please make sure that it is an issue / a feature request. If it is a question / help wanted, please visit our group chat. Thank you!
Operating System:
Ubuntu 14.04.5 LTS
Docker Image:
butomo1989/docker-android-x86-9.0
Docker Version:
Docker version 18.06.0-ce, build 0ffa825
Docker-compose version (Only if you use it):
Docker Command to start docker-android:
docker run --privileged -itd -p 6080:6080 -e APPIUM=false -e AUTO_RECORD=false -e DEVICE="Samsung Galaxy S6" -e EMULATOR_ARGS="-camera-back virtualscene" butomo1989/docker-android-x86-9.0
#please note -e EMULATOR_ARGS="-camera-back virtualscene"
Expected Behavior
Open camera. Moving is possible using "Alt" + one of the "QWEASD".
Actual Behavior
Open Camera. Moving inside virtualscene should be possible using "Alt" key + one of the "QWEASD" keys. Rotation using mouse works fine, but view poitn can't change position.
Looks like using "Alt" key is passed properly, but letters are not passed to virtualscene navigation.
@budtmo commented on GitHub (Oct 30, 2018):
Hi @marad9016100 ,
Thank you for opening the issue. Could you also add / attach sample application to debug that issue? or if you want, you can also work on it and create a PR. It would be great.
@marad9016100 commented on GitHub (Oct 30, 2018):
Hi @butomo1989 ,
thank you for very quick replay.
Just run image docker-android-x86-9.0, pass parameter -e EMULATOR_ARGS="-camera-back virtualscene"
e.g.
docker run --privileged -itd -p 6080:6080 -e APPIUM=false -e AUTO_RECORD=false -e DEVICE="Samsung Galaxy S6" -e EMULATOR_ARGS="-camera-back virtualscene" butomo1989/docker-android-x86-9.0
Then use system "Camera" app shipped with emulator. Camera should display inside virtual room.
The issue is that moving inside room keyboard "QWEASD" is impossible.
@marad9016100 commented on GitHub (Nov 5, 2018):
I was able to workaround this issue by sending keys directly from terminal e.g
xdotool key --clearmodifiers Alt+a
@budtmo commented on GitHub (Nov 6, 2018):
Hi @marad9016100 ,
could you write documentation about it and create a PR? just in case someone has similar issue like you had.
@marad9016100 commented on GitHub (Nov 20, 2018):
Hi @butomo1989
unfortunately my workaround is not working well.
I am able to move inside virtual scene using commands passed via terminal but it requires killing command during passing. Then there is random move inside virtual scene.
So moving is not intentional but random. It is definitely not good solution.
@Noman5253 commented on GitHub (Mar 7, 2020):
Same thing is happening with me. I am running a demo AR app on emulator [Pixel 2 Oreo]. App runs successfully, it show the animation to move the camera, when I press Alt, emulator sense that alt is pressed but when I move mouse or press ASDWQE (holding Alt) nothing happens. View does't even move, and the animation(tutorial) keeps running. Please help.
@0xhex commented on GitHub (Oct 8, 2020):
Same issue help pls
@0xhex commented on GitHub (Apr 18, 2021):
solution ? @Noman5253
@IamBiswajitSahoo commented on GitHub (May 8, 2021):
Run the Emulator as a standalone app for the Camera's Virtual Scene to work.
From Android Studio > Settings > Tools > Emulator > Untick "Launch In A Tool Window" > Rerun the Emulator from AVD Manager.
As Virtual Scene in Camera requires extended controls.
If Using for AR Apps:
Refer: https://developers.google.com/ar/develop/c/emulator
@Displee commented on GitHub (Jun 23, 2022):
Same issue, however, I did find a workaround.
Edit
/root/emulator/resources/Toren1BD.postersand add the following lines to it:Then add a file called

custom.pngin the same directory. This will show your picture like this: