T-vK / ESP32-BLE-Keyboard

Bluetooth LE Keyboard library for the ESP32 (Arduino IDE compatible)
2.39k stars 398 forks source link

tell me a synonym for the "meta" key in the library? (Android 9) #6

Closed Klapautsiy closed 4 years ago

Klapautsiy commented 4 years ago

pause media - KEY_MEDIA_PLAY_PAUSE stop media - KEY_MEDIA_STOP META - ???

https://raw.githubusercontent.com/Klapautsiy/titanium-bicycle-for-button/gh-pages/pictures/ESP32%20BLE%20key%20android%201.jpg

T-vK commented 4 years ago

Take a look at https://github.com/T-vK/ESP32-BLE-Keyboard/blob/master/BleKeyboard.h It's not a MEDIA key. It's KEY_LEFT_GUI or KEY_RIGHT_GUI.

Klapautsiy commented 4 years ago

thanks. did not notice the elephant in the forest. The code quoted below works correctly on Android 9 Samsung Galaxy M20

// run AIMP
bleKeyboard.press(KEY_LEFT_GUI);
bleKeyboard.press('p');
bleKeyboard.releaseAll();
T-vK commented 4 years ago

Glad I could help. :)