View Single Post
Posts: 248 | Thanked: 1,142 times | Joined on Dec 2014 @ Earth
#2
In general :
- Sailfish OS is a GNU/Linux distribution. It works a lot like any other Linux.
- If the controller is a standard one (i.e.: present it self as a HID device - mice, keyboards and some standard gaming controller) you can pair it as any HID device
- Sailfish OS it self has support for Bluetooth HID Keyboards (but doesn't do anything peculiar with other HID devices).
- If the controller is something weird (uses some specific proprietary Bluetooth protocol like the WiiMote) you can't do much, you'll need to compile drivers for it. (e.g.: Wii mote relies on a special user-mode library talking to it).

I don't have experiences with PS3 GamePad, I don't know if they are standard HID or not.

For Android :
- Currently Android doesn't directly "see" the Bluetooth Stack (Sailfish OS uses BlueZ like any normal GNU/Linux distribution, whereas Android uses its own custom bluetooth stack). So if an app needs to directly talk to a Bluetooth peripheral it won't work (e.g.: the app specific to your wireless speaker that is used to send configuration - like asking two speaker to pair with each other and present themselves as a stereo set, or send an alarm to start automatically playing in the moning, etv.)
- On the other hand any standard device that has been paired by SailfishOS and shows up as a normal device will be usable by android (e.g.: bluetooth keyboard is just yet another keyboard for android, bluetooth speaker is simply an audio out - the music players will play as if it was a normal audioout, even if the hardware-specific app fails, etc.)

So it all boils down to :
- is the controller you plan to use a standard Bluetooth HID peripheral, or does it need some weird specific trick ?
- is the game designed to use a standard Linux game pad (from /dev/input/xxx): most games ARE NOT. You're lucky if Android games even pay attention to the standard keyboard.

You'll typically need some application to remap the button from the gamepad into something that the game will recognize. (I know there's a universal anything-to-anything remapper in the Google Play store)


ArchLinux has a wiki page about Gamepads. It applies to most GNU/Linux distribution, including sailfish.

Caveat : some versions of Sailfish (like the Xperia) use a fixed kernel that doesn't accept modules. If the Bluetooth HID is missing you cannot compile your own (note: it seems compiled in the Xperia).

Other caveat : the OTG functionality in the Jolla 1 doesn't work (missing wiring) thus you can't plug in USB gamepads.
 

The Following 3 Users Say Thank You to DrYak For This Useful Post: