Scrcpy 2.7 Adds Gamepad Support for Gaming on Android

Last updated: September 17, 2024 — Leave a comment

Scrcpy, Android screen mirroring and controlling app, released version 2.7 few days ago.

Scrcpy is a popular free and open-source application for Windows, Linux, and macOS. It can mirror the Android screen on PC, and allows to control the device with keyboard and mouse.

With the new 2.7 release, user can now use game controllers (e.g., PS4/PS5, or XBox gamepad), which are connected into the computer, to play Android games.

Scrcpy on Ubuntu

The gamepad support is disabled by default, because the default UHID mode is not supported on all devices, especially with old Android versions.

To enable this feature, user can start scrcpy with either -G or --gamepad=uhid flag:

scrcpy --gamepad=uhid

This mode enables the feature via the UHID kernel module. As mentioned, it may however not work on old Android versions.

For choice, user can enable gamepad support via AOAv2 protocol. It’s Android Open Accessory protocol works at the USB level directly. Which, however works only over USB.

scrcpy --gamepad=aoa

This mode does not use the scrcpy server, does not require adb (USB debugging). It however has issues including does not detect multiple physical gamepads, only work in OTG mode for Windows.

The gamepad support can work without mirroring Android screen and/or audio to your computer. In the case, start scrcpy with command:

scrcpy --no-video --no-audio --gamepad=uhid

Or, user can start the feature in in OTG mode, so the game controller works as it was plugged directly to the Android device.

scrcpy --otg --gamepad=aoa

Scrcpy 2.7 now accepts floating point values for --max-fps option. Meaning it can now capture at a frame rate lower than 1 fps, which might be useful for creating a timelapse.

Other changes include:

  • Fix support for ONYX devices.
  • Update SDL to 2.30.7 in Windows.
  • And various other fixes.

How to Get Scrcpy 2.7

Scrcpy is available in Ubuntu repositories, but outdated. For the latest version, see the official guide via link below:

If you’re new to this app, then here’s also a step by step guide to set it up in Ubuntu.

Twitter

I'm a freelance blogger who started using Ubuntu in 2007 and wishes to share my experiences and some useful tips with Ubuntu beginners and lovers. Please comment to let me know if the tutorial is outdated! And, notify me if you find any typo/grammar/language mistakes. English is not my native language. Contact me via ubuntuhandbook1@gmail.com Buy me a coffee: https://ko-fi.com/ubuntuhandbook1 |

No Comments

Be the first to start the conversation.

Leave a Reply

Text formatting is available via select HTML.

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong> 

*