steamcontroller icon indicating copy to clipboard operation
steamcontroller copied to clipboard

Questions about porting to other OSes

Open bluddy opened this issue 9 years ago • 1 comments

Just so I understand, you're taking advantage of the fact that under Linux, a simple char device (uinput) can be used for any type of device -- mouse, keyboard or gamepad. Is this correct? This won't scale to other OSes, where you need to actually use their API to create the appropriate events. Do I understand this correctly?

bluddy avatar Dec 02 '16 13:12 bluddy

Hi,

Linux has a special API (uinput) that permit to create virtual event devices from userland and generate events easily.

The interface is located in uinput.c and uinput.py in my code and it uses a header parser I wrote to get Linux kernel defines value for ioctl syscall.

The main issue to port it to another OS is that I don't know their API to perform the same operations, and don't have time to document myself on the subject.

If someone is willing to do this part I can help to integrate this work into this project.

The only os I looked into is android (as based on Linux) it should not be very difficult to port this driver on a rooted device. On a non rooted device, Android does not permit events injection for security reason.

ynsta avatar Dec 02 '16 13:12 ynsta