Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Game Command format between bluetooth controller and console

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

like image 730
The Holy Coder Avatar asked Jul 13 '16 19:07

The Holy Coder


People also ask

How do you connect a Bluetooth controller to steam?

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.

How do you connect a wired controller to your phone?

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.


1 Answers

Try to use HID over GATT profile and this code as example.

like image 57
Andrii Omelchenko Avatar answered Sep 23 '22 01:09

Andrii Omelchenko