Giter VIP home page Giter VIP logo

Comments (5)

benjaminaigner avatar benjaminaigner commented on May 28, 2024

Hi @semigodking

these packets are release actions. If you don't send empty reports, you will have a kind of sticky keys.
-> it seems like you press a keyboard key and a mouse button permanently.

from esp32_mouse_keyboard.

benjaminaigner avatar benjaminaigner commented on May 28, 2024

If you need further answers, you're welcome to ask. Otherwise please close this issue :-)

from esp32_mouse_keyboard.

semigodking avatar semigodking commented on May 28, 2024

from esp32_mouse_keyboard.

benjaminaigner avatar benjaminaigner commented on May 28, 2024

If you look into esp_hidd_prf_api.c:109, you see that "esp_hidd_send_keyboard_value()" takes a parameter "num_key". This is the amount of keycodes which should be read. In this case, only 1 keycode is set and released.
You can pass an array of up to 6 elements which are simply mapped to a HID report.

If you want to manage it yourself, you can implement a keycode_add, keycode_remove function which changes a 6byte array and pass this array into esp_hidd_send_keyboard_value for sending updates.

Example: https://github.com/asterics/FLipMouse-esp32/blob/ecdefbed3f9aab933567ff36ca65a4319834c448/main/keyboard_layout_helper/keyboard.c#L2109

from esp32_mouse_keyboard.

semigodking avatar semigodking commented on May 28, 2024

Thank you very much! That example really helps.

from esp32_mouse_keyboard.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.