Quantcast
Channel: xda-developers - Android Software and Hacking General [Developers Only]
Viewing all articles
Browse latest Browse all 3614

[Q] Emulating an HID device

$
0
0
Hi,

I'm developing a solution that allows one to use a PC keyboard+mouse to control an Android game (e.g Shadowgun) as a Gamepad.

I want to do this via emulating an HID device connection (as one would connect a real gamepad), but instead I want to inject my own events to this virtual device.

The problem is, I don't know where to start, there is a shocking amount of material and I'm not quite a kernel/linux professional.

For example, injecting events to the touch input subsystem is easy: just write appropriate events to /dev/input/event2.

Can anyone point me to a resource or suggest a place to start looking for a solution?

Many thanks ahead,

s.v

Viewing all articles
Browse latest Browse all 3614

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>