PC acting as the HID keyboard for adaptive gaming
I'd like to have the PC act as the HID keyboard to emulate an Xbox controller. Could this just be done on the PC side to get the keyboard strokes to 2040 or would the HIDremapper code need to be modified to receive signal from the PC?
This would wind up connecting to an Xbox or an Xbox Adaptive Controller. Its for someone who uses eyetracking to access the PC. What we do is create a bunch of soft onscreen buttons.
There's no way to do it currently, but it's something I'm thinking about.
Keep in mind there is no direct Xbox compatibility so to connect it to an Xbox console you'd have to use the XAC or some adapter.
Maybe this will be of interest to you:
https://github.com/jfedor2/hid-forwarder
It lets you generate inputs on the PC using any method and send them to a receiver that can emulate all the device types HID Remapper can.
@ehrhartd @jfedor2
The usbnswa project may be related to what you are considering. An ESP32-S3 emulates a Nintendo Switch gamepad on its USB OTG port. The ESP32-S3 serves a web page which look like a virtual gamepad. Clicks on the web page buttons are relayed to the ESP32-S3. The ESP32-S3 converts the clicks into USB HID gamepad button presses going out to the Switch.
Changing the USB HID gamepad can make it compatible with the XAC instead of the Switch. hid-remapper support several different gamepads as well as mouse and keyboard.
Chrome - Computer -WiFi- ESP32-S3 - USB OTG - Nintendo Switch or XAC
hid-remapper does not run on ESP32-S3 but maybe it can run on pi picow. A pi picow can do the same web server stuff, I think, as the ESP32-S3.
One disadvantage for pi picow is sellers limit the number of boards per order.
If the computer has eye gaze hardware, the user can use eye gaze to click on the web page buttons. This is an assumption since I have never used eye gaze hardware but have seen videos.
https://github.com/touchgadget/usbnswa