Cableless Mouse

I just completed making a fully functional mouse with a bunch of extras using a 32u4 board, but I wish to make the next version wireless using 2.4GHz. After looking around quite a bit I stumbled upon a Dongle That has an ARM M4F with a nRF51 (I would have preferred the nRF24, as that seems to be the standard) https://www.aliexpress.com/item/32862480389.html

My questions are as follows:

-Is it possible to use this device with the Arduino Environment (I am fairly certain this would involve the boot-loader in some way). I do know the Teensy 3.5 uses an ARM-M4F but not the same chip.

-Is it possible to use the ARM M4F as a mouse? (why can the 32u4 function as a mouse in the first place?)

-In the data sheet of the nRF52 it seems like the ARM processor is part of the nRF. How would this affect the programming (if it is even possible)?

Alternatively:

Would it be possible to use an ESP32 with bluetooth? (and no dongle/generic usb dongle) as a mouse? (EDIT: This seems to be possible.)

Thanks.

That has an ARM M4F with a nRF51 (I would have preferred the nRF24, as that seems to be the standard) https://www.aliexpress.com/item/32862480389.html

The links points to an nRF52 device, not nRF51.

-Is it possible to use this device with the Arduino Environment (I am fairly certain this would involve the boot-loader in some way). I do know the Teensy 3.5 uses an ARM-M4F but not the same chip.

There are several nRF52 cores available (Adafruit, Arduino), so support for the processor shouldn't be a problem. You might have to add your own board definition.
The linked product is a USB stick, so it's not designed to work as a standalone product.

-Is it possible to use the ARM M4F as a mouse? (why can the 32u4 function as a mouse in the first place?)

Yes, the nRF52 supports Bluetooth and you can use the HID profile to emulate a mouse.
The 32U4 emulates a mouse by providing a HID USB profile on the USB bus.

Would it be possible to use an ESP32 with bluetooth? (and no dongle/generic usb dongle) as a mouse?

Yes.

btw the M4F is in the nRF52

for Arduino on nRF52 GitHub - sandeepmistry/arduino-nRF5: Arduino Core for Nordic Semiconductor nRF5 based boards

pylon:
The links points to an nRF52 device, not nRF51.

Sorry, Typo.

pylon:
The linked product is a USB stick, so it's not designed to work as a standalone product.

The idea is to use 2.4GHz to send input from the mouse to the usb Dongle, which then converts it to the HID profile. I couldn't think of any other way to do it, unless there is a 2.4ghz dongle (in that form factor) that can act as a pass though. (but in that case, if the mouse if not connected what happens then?)

pylon:
Yes, the nRF52 supports Bluetooth and you can use the HID profile to emulate a mouse.
The 32U4 emulates a mouse by providing a HID USB profile on the USB bus.

So the only hardware requirement is a USB bus on the chip? A USB emulation would also work then?

Juraj:
btw the M4F is in the nRF52

for Arduino on nRF52 GitHub - sandeepmistry/arduino-nRF5: Arduino Core for Nordic Semiconductor nRF5 based boards

Thanks, that will help.

there are small ATmega32u4 boards with a BT module you could use as receiver. The USB part of your existing code would work here. I have a Blueduino by Seedstudio
on the mouse side the USB of the 32u4 is useless, but you could use the same board anyway