scrcpy icon indicating copy to clipboard operation
scrcpy copied to clipboard

what is the best configuration for minecraft bedrock?

Open scptri1 opened this issue 1 year ago • 1 comments

i need best configuration for that game, I have some bugs trying to use the right click, because when I use the right click it sends me to the settings

scptri1 avatar May 22 '24 17:05 scptri1

By default, right-click is BACK.

Use scrcpy --forward-all-clicks to forward middle and right clicks.

rom1v avatar May 22 '24 19:05 rom1v

umm , i have a problem using --forward-all-clicks doesnt get me a normal click it still performs BACK i am using uhid mode and my mouse is captured in the scrcpy window

But when I use the default mouse mode (i.e, sdk) , the right click works just as I want. The thing is MCBE requires a captured mouse to control camera motion, which the sdk mouse mode doesn't provide.

And even --mouse-bind or --forward-all-clicks doesn't help , I've tried keymappers like xdtools (which failed) , and also on android (which don't recognise the BACK as a trigger);

:D Have a wonderful , blessed and happy year.

Ihtishamulhaq007 avatar Nov 22 '24 17:11 Ihtishamulhaq007

IIRC, on some devices, a real right-click triggers BACK.

Check the output with -Vverbose.

rom1v avatar Nov 22 '24 18:11 rom1v

Nope , also with -Vverbose , the device just does the BACK

But since the normal sdk mode does in fact , simulate a right click , I'm in doubt wether my device is supported or not

OR: I could capture the sdk mouse into the android , that'd make MCBE recognise the camera motion and as well as right click..

Well , I'm just an amateur. I'm sorry for any un-necessary fuss i created up in your mind...

Ihtishamulhaq007 avatar Nov 22 '24 18:11 Ihtishamulhaq007

Nope , also with -Vverbose , the device just does the BACK

Sure, but look in the console what is injected when you right-click.

rom1v avatar Nov 22 '24 18:11 rom1v

ERBOSE: [Audio] Buffering: target=2400 avg=2493.765381 cur=1989 compensation=0 VERBOSE: [Audio] Buffering: target=2400 avg=2461.432861 cur=1989 compensation=0 VERBOSE: [Audio] Buffering: target=2400 avg=2445.029785 cur=2709 compensation=0 VERBOSE: [Audio] Buffering: target=2400 avg=2433.724609 cur=2709 compensation=0 VERBOSE: input: UHID input [2] 02 00 00 00 VERBOSE: [Audio] Buffering: target=2400 avg=2435.638428 cur=2709 compensation=0 VERBOSE: input: UHID input [2] 00 00 00 00 VERBOSE: [Audio] Buffering: target=2400 avg=2437.508301 cur=2469 compensation=0 VERBOSE: [Audio] Buffering: target=2400 avg=2424.652832 cur=2229 compensation=0 VERBOSE: [Audio] Buffering: target=2400 avg=2423.325928 cur=2229 compensation=0 VERBOSE: [Audio] Buffering: target=2400 avg=2421.456299 cur=1989 compensation=0 VERBOSE: [Audio] Buffering: target=2400 avg=2408.667236 cur=1989 compensation=0 VERBOSE: [Audio] Buffering: target=2400 avg=2409.651367 cur=2949 compensation=0

The middle two UHID inputs is what I got...

Ihtishamulhaq007 avatar Nov 22 '24 18:11 Ihtishamulhaq007

OK so this is not scrcpy which injects BACK, it's your device which decides to perform BACK on right-click.

rom1v avatar Nov 22 '24 18:11 rom1v

So no chance of getting a right click to be not back , I see;

Thank you for your time man Sorry for any discrepancy caused by me

Ihtishamulhaq007 avatar Nov 22 '24 18:11 Ihtishamulhaq007

You should get the same behavior with a phtsical mouse. Check in your Android system settings.

rom1v avatar Nov 22 '24 19:11 rom1v

There's no setting in my mobile for that , But I wonder if I could enable it through adb

Ihtishamulhaq007 avatar Nov 22 '24 19:11 Ihtishamulhaq007

Nope , I can't change anything with adb. Even a physical mouse does the back action, and only SDK one right clicks... It's all considered system-level and restricted for me. What a shame though, I had thought I'd enjoy MCBE with some actual pc level controls... Nontheless , I'll try adapting to the new touch controls. Since they've made it better I guess...

Ihtishamulhaq007 avatar Nov 23 '24 08:11 Ihtishamulhaq007

I think this behavior changed from some Android version. Is an update available on your device?

rom1v avatar Nov 23 '24 08:11 rom1v

No... My system is up to date

Ihtishamulhaq007 avatar Nov 23 '24 09:11 Ihtishamulhaq007

For me now it worked as expected for mouse and keyboard in Minecraft and Luanti (formerly Minetest) by just scrcpy -KMS, but current bug now is space key are not working so you can't jump, map the jump button to other key should work but I guess this need to be fixed.

Tried survivalcraft the space keyboard are able to jump but no mouse rotate (I guess it not supported or problem with the game).

bramaudi avatar Dec 29 '24 09:12 bramaudi