I am creating an Android project, in which I have to make android wearable
smart watch as game controller which can send commands to games running on handheld device connected to that smartwatch over BLE(Bluetooth Low Energy)
.
I designed controller pad on wearable and can send some hard coded text to handheld device app on soft button click of controller pad. Issue is, I have to replace that text with game commands format expected by games running on handheld device. And, the app running on handheld device can listen text through wearable service. I know that, third party games would not have any wearable service running, so how third party games will accept/listen command sending from wearable smartwatch.
Third party games can support hardware controller through Android SDK
Simultaneously hold the PS and Share button on the PS4 controller until it enters pairing mode and starts flashing. Find Wireless Controller of type gamepad in the bluetooth device list. Press the (A) button to pair with the PS4 controller.
You'll first need to purchase a USB OTG cable. They're available for cheap from Amazon. Make sure you choose a USB-C or micro-USB connector depending on what your phone uses. Once you have a USB OTG adapter, just plug it into your Android phone, and connect the USB game controller to the other end of the adapter.
Try to use HID over GATT profile and this code as example.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With