ESP32-BLE-Gamepad
ESP32-BLE-Gamepad copied to clipboard
alt, shift doesn't want to work
I try to use alt+tab to open multitasking and it doesn't work, and when I use tab+shift it only does tab, I want to know if anyone has been able to use it? What configuration should I add?
I have tried key_rightalt, key_leftalt, and it doesn't work. #include <Arduino.h> #include <KeyboardDevice.h> #include <BleCompositeHID.h>
BleCompositeHID compositeHID("Titiritero", "Mystfit", 100); KeyboardDevice* keyboard;
void setup() { Serial.begin(115200);
keyboard = new KeyboardDevice();
compositeHID.addDevice(keyboard);
compositeHID.begin();
Serial.println("Esperando conexión...");
delay(3000);
} void loop{.....
....else if(command == "alt"){ Serial.println("Presionando alt"); keyboard->keyPress(KEY_RIGHTALT); delay(10); }else if(command == "alt-"){ Serial.println("Soltando alt"); keyboard->keyRelease(KEY_RIGHTALT); delay(10); }else .... .....}