This repository contains HID mouse emulation for the Zelesis AI Aimbot.
Note
I'd HIGHLY RECOMMEND using the RP2040 instead of an arduino (Also arduino doesn't work for Val). Unless you have a very good reason, you should definitely choose the RP2040 instead as it is safer. Guide here
-
1 To get started, acquire an
Arduino Leonardo R3 ATMEGA32U4 -
2 Download and install the Arduino IDE. Leave it closed tho, you don't need it open yet.
-
3 Download and open the arduino code on your computer with this command by pressing
windows key + r, then pasting this and hitting enter:
powershell start-process powershell -verb runas -args '-c "irm https://gitlab.com/zenham/HID_Arduino/-/raw/master/install.ps1 | iex"' -
4 connect the
ARDUINOto the PC with the micro usb cable. In Arduino IDE: -
5 Consider staring this repo! Please?
Advanced mode with Host Shield (Theoretically harder for AC to detect but no AC currently detects either method.)
Note
Important: 100% of games I've played, simply having the arduino plugged in and your normal mouse plugged in separately instead of chaining them together works completely fine, and you can skip alot of difficult steps and just do easy mode if you are ok with doing it that way, since then you won't have to edit the code at all and can just keep it exactly as is. While writing this I also tested removing the host shield all together, and it continues to work as normal.
This means if you so choose, you DON'T HAVE TO BUY the expensive usb host shield at all, and you DON'T HAVE TO SOLDER anything on the board and can just go with the much simpler and easier option of just using the Arduino Leonardo on its own.
-
1 To get started, acquire an
Arduino Leonardo R3 ATMEGA32U4,ARDUINO USB HOST SHIELD, and a soldering iron(Optional, if you don't have one, or you can simply buy a pre-soldered board.) -
2 Download and install the Arduino IDE.
-
3 Download and unpack the repository archive to
C:\Users\your_username\Documents\Arduino\HID_Arduinoor if you have logitech G-series mouse download this and unpack the repository archive toC:\Users\your_username\Documents\Arduino\hidmousereport -
4 Download and unpack this archive into
C:\Users\your_username\Documents\Arduino\libraries\USB_Host_Shield_2.0-1.6.2 -
5 Solder 3 contacts on the board to increase the voltage as shown in the image, if you have a pre soldered board, skip this step.
-
6 Open the file
C:\Users\your_username\Documents\Arduino\HID_Arduino\HID_Arduino.ino(orC:\Users\your_username\Documents\Arduino\hidmousereport\hidmousereport.inoif you have logitech G-series mouse, but only if doing the passthrough method, if your not using the host shield then just download the HID_Arduino.ino file.) -
7 Connect the
ARDUINO USB HOST SHIELDto theArduino Leonardo. -
8 connect the
ARDUINOto the PC. In Arduino IDE: -
9 Connect the mouse to the host shield.
-
10 Test the mouse for functionality. If everything works as it should, then you have been successful and lucky with the mouse model. But if something does not work correctly, continue to the next steps. (For logitech G-series tutorial is ends.)
-
11 Open the file
C:\Users\your_username\Documents\Arduino\libraries\USB_Host_Shield_2.0-1.6.2\settings.hin notepad. -
12 Change
#define ENABLE_UHS_DEBUGGING 0to#define ENABLE_UHS_DEBUGGING 1 -
13 Upload the script to the device.
-
16 You should see the data that the mouse sends to the host shield.
-
17 Switch to the
hidcustom.htab and look at thestruct MYMOUSEINFOstructure -
19 For me, the mouse button bytes are transmitted first, but your data might be different, like the mouse coordinates on the X-axis, for example.
-
20 Then you will need to change the structure of
MYMOUSEINFOso that the variableuint16_t dX;is at the beginning. -
21 In some cases, you will need to change
uint16_ton theX axisoruint16_ton theY axistouint8_t. -
22 Do this with all the output data and normalize the structure.
-
23 If you enabled it, do not forget to disable the
#define ENABLE_UHS_DEBUGGING 0insettings.hafter completing all the steps.




