# Is it possible to program an ESP32 as a HID to transmit both (absolute positioning) mouse inputs and gamepad inputs?

**URL:** <https://forum.arduino.cc/t/is-it-possible-to-program-an-esp32-as-a-hid-to-transmit-both-absolute-positioning-mouse-inputs-and-gamepad-inputs/987050>\
**Category:** General Guidance\
**Created:** [May 1, 2022, 3:39am UTC](https://forum.arduino.cc/t/is-it-possible-to-program-an-esp32-as-a-hid-to-transmit-both-absolute-positioning-mouse-inputs-and-gamepad-inputs/987050 "2022-05-01T03:39:23Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![8-bit\_d-boy](https://avatars.discourse-cdn.com/v4/letter/8/8c91f0/32.png) [@8-bit\_d-boy](https://forum.arduino.cc/u/8-bit_d-boy)\
**Post date:** [May 1, 2022, 3:39am UTC](https://forum.arduino.cc/t/is-it-possible-to-program-an-esp32-as-a-hid-to-transmit-both-absolute-positioning-mouse-inputs-and-gamepad-inputs/987050/1 "2022-05-01T03:39:23Z")

</div>

I'm trying to design a light gun for Android TV devices using an ESP32 and I don't want to have to create custom drivers for it, so I'm wondering if it's possible to have it send both absolute mouse and gamepad inputs without having to write anything extra for the device.

I plan on using these libraries:

> **[GitHub - sobrinho/ESP32-BLE-Abs-Mouse: Bluetooth LE Mouse library for the...](https://github.com/sobrinho/ESP32-BLE-Abs-Mouse)**
>
> Bluetooth LE Mouse library for the ESP32 (Arduino IDE compatible) - GitHub - sobrinho/ESP32-BLE-Abs-Mouse: Bluetooth LE Mouse library for the ESP32 (Arduino IDE compatible)

> **[GitHub - lemmingDev/ESP32-BLE-Gamepad: Bluetooth LE Gamepad library for the...](https://github.com/lemmingDev/ESP32-BLE-Gamepad)**
>
> Bluetooth LE Gamepad library for the ESP32. Contribute to lemmingDev/ESP32-BLE-Gamepad development by creating an account on GitHub.

If it is possible, any tips and tutorials y'all could recommend? Thanks in advance!

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/system/32/1140315_2.png) [@system](https://forum.arduino.cc/u/system)\
**Post date:** [October 28, 2022, 3:39am UTC](https://forum.arduino.cc/t/is-it-possible-to-program-an-esp32-as-a-hid-to-transmit-both-absolute-positioning-mouse-inputs-and-gamepad-inputs/987050/2 "2022-10-28T03:39:42Z")

</div>

Closed on October 28, 2022, 3:39am UTC

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.
