# Can i emul controler?

**URL:** <https://discourse.processing.org/t/can-i-emul-controler/20102>\
**Category:** Processing\
**Tags:** homework\
**Created:** [April 24, 2020, 4:10pm UTC](https://discourse.processing.org/t/can-i-emul-controler/20102 "2020-04-24T16:10:00Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![hitmoh47](https://avatars.discourse-cdn.com/v4/letter/h/6f9a4e/32.png) [@hitmoh47](https://discourse.processing.org/u/hitmoh47)\
**Post date:** [April 24, 2020, 4:10pm UTC](https://discourse.processing.org/t/can-i-emul-controler/20102/1 "2020-04-24T16:10:00Z")

</div>

Hi , i have a question.  
i would to create a program that can emulate a controller ,i don’t know if i can do it with robot class.

---

<div class="post-metadata">

**Author:** ![jeremydouglass](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/jeremydouglass/32/20_2.png) [@jeremydouglass](https://discourse.processing.org/u/jeremydouglass)\
**Post date:** [April 27, 2020, 9:29pm UTC](https://discourse.processing.org/t/can-i-emul-controler/20102/2 "2020-04-27T21:29:35Z")

</div>

By “emulate a controller” – what kind of controller, connected to what how? Is it an HID controller connected to the computer where the sketch is running? Is it sending commands that are keystrokes / serial / bluetooth? Are you sending the commands to other hardware, like a game console – and over a cable, or over the air? Etc.

You might want to check out the internals of @quark’s old Game Control Plus library, which is for reading controllers, not emulating them, but still…

---

<div class="post-metadata">

**Author:** ![hitmoh47](https://avatars.discourse-cdn.com/v4/letter/h/6f9a4e/32.png) [@hitmoh47](https://discourse.processing.org/u/hitmoh47)\
**Post date:** [April 28, 2020, 10:31pm UTC](https://discourse.processing.org/t/can-i-emul-controler/20102/3 "2020-04-28T22:31:18Z")

</div>

i created my own controller with an arduino ,  
it send to processing a states of butons , my sketch convert this data to pressed keys of keyboard ( processing sketch) , to play a game in my pc , but now i have a game that whork with controller ,so i want processing send to game a controller data not a keyboard.  
thx.  
i know my english is discusting sorry^^.

---

<div class="post-metadata">

**Author:** ![jeremydouglass](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/jeremydouglass/32/20_2.png) [@jeremydouglass](https://discourse.processing.org/u/jeremydouglass)\
**Post date:** [April 29, 2020, 12:06am UTC](https://discourse.processing.org/t/can-i-emul-controler/20102/4 "2020-04-29T00:06:42Z")

</div>

> [@hitmoh47](#):
>
> now i have a game that work with controller

What game / what controller (what OS)? There isn’t any one simple standard, unfortunately. You can’t just send “controller data” – there are many, many kinds.

For example, here is a Linux package for Steam controllers:

- [GitHub - kozec/sc-controller: User-mode driver and GTK3 based GUI for Steam Controller](https://github.com/kozec/sc-controller)

---

<div class="post-metadata">

**Author:** ![hitmoh47](https://avatars.discourse-cdn.com/v4/letter/h/6f9a4e/32.png) [@hitmoh47](https://discourse.processing.org/u/hitmoh47)\
**Post date:** [April 29, 2020, 11:45am UTC](https://discourse.processing.org/t/can-i-emul-controler/20102/5 "2020-04-29T11:45:16Z")

</div>

ok , OS -\>Windows10-x64  
controller -\>Logitech g27  
game-\> beamNg drive.

---

<div class="post-metadata">

**Author:** ![jeremydouglass](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/jeremydouglass/32/20_2.png) [@jeremydouglass](https://discourse.processing.org/u/jeremydouglass)\
**Post date:** [May 3, 2020, 1:57pm UTC](https://discourse.processing.org/t/can-i-emul-controler/20102/6 "2020-05-03T13:57:38Z")

</div>

I haven’t looked at the specs, but it looks like this is specialty hardware that only has drivers that work with specific games. If it isn’t HID my guess would be that you will have a very hard time emulating it in that way. But the first thing to do is look up the specs on how it sends signals and what signals it sends.

> **[Logitech G27 Racing Wheel Technical Specifications](https://support.logi.com/hc/en-us/articles/360023461893-Logitech-G27-Racing-Wheel-Technical-Specifications)**
>
> NOTE: Information is for reference only and may be subject to change.
> 
> 
> 
> General Product Information:
> \[Compliance Certification (CE) Link\]
> 
> 
> Warranty / Self Help
> See product support page for warran...
