mystfit / esp32-ble-compositehid Goto Github PK
View Code? Open in Web Editor NEWThis project forked from lemmingdev/esp32-ble-gamepad
Bluetooth LE Gamepad + Mouse + Keyboard library for the ESP32
License: Other
This project forked from lemmingdev/esp32-ble-gamepad
Bluetooth LE Gamepad + Mouse + Keyboard library for the ESP32
License: Other
I want to control the mouser pointer with the joystick, but I don't know how to give the command to click the left button?
Hello, I'm having trouble getting the device recognized in unity as a game controller, it always appears as a joystick. This is the case with my custom code, and when simply using the xinput example file. Is there something the example is missing to display as a normal gamepad?
Steam input recognizes the controller and even sends my debug vibration callback to make my esp32 output serial.
Also wanted to add, really apprecitate the work you've done on this, my hardware prototype with my game is feasible without a dongle because of this library as I know exactly nothing about HID descriptors. I noticed in your other comment you have two esp32s with one relaying messages through the other and that's exactly what I do too :).
In the mean time I am experimenting with transitioning over to steam input and will likely have to bite the $100 dollar fee to do so, not the end of the world if I have to do that.
Unsure if this belongs in "discussion" instead of issue lmk!
I like very much the ESP32-BLE-CompositeHID bluetooth, but I would like to be able to order more things, such as: re-pairing, and auto-connecting previously connected devices, etc. I hope you can expand this libary, bye!!!!
`
XboxSeriesXControllerDeviceConfiguration* config = new XboxSeriesXControllerDeviceConfiguration();
BLEHostConfiguration hostConfig = config->getIdealHostConfiguration();
gamepad = new XboxGamepadDevice(config);
MouseConfiguration mouseConfig;
mouse = new MouseDevice(mouseConfig);
compositeHID.addDevice(gamepad);
compositeHID.addDevice(mouse);
//compositeHID.begin(hostConfig); only gamepad work
//compositeHID.begin(); only mouse work`
In file included from c:\Users\2006e\OneDrive\文件\Arduino\libraries\ESP32-BLE-CompositeHID\GamepadDevice.cpp:1:
c:\Users\2006e\OneDrive\文件\Arduino\libraries\ESP32-BLE-CompositeHID\GamepadDevice.h:7:10: fatal error: Callback.h: No such file or directory
#include <Callback.h>
^~~~~~~~~~~~
compilation terminated.
exit status 1
Compilation error: exit status 1
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.