arduino-libraries / Keyboard

GNU Lesser General Public License v3.0
223 stars 157 forks source link

ES LAYOUT NOT WORKING #55

Closed LostName1 closed 2 years ago

LostName1 commented 2 years ago

After trying for long time and trying all the ideas that came to my head I havent been able to make the layout work. The keycode are mixed even when I configure then manually. unknown unknown g)

facchinm commented 2 years ago

Hi @LostName1 , we just merged yesterdary a patrch that finally allows multiple language maps :slightly_smiling_face: The API is very simple; just change Keyboard.begin() into Keyboard.begin(KeyboardLayout_es_ES) and you should be fine without strange hacks! Let me know if it works fine or if you find any issue; I'm closing this in the meantime.

LostName1 commented 2 years ago

I used that too but I got the same error @facchinm

edgar-bonet commented 2 years ago

@LostName1 wrote:

I got the same error

What error? You are not showing any error in the issue description.

If you are having issues making the library work for your needs, please follow these steps:

  1. Consider how sure you are that you are experiencing a bug in the library, rather than a bug in you own code. If unsure, seek help on the Arduino forum or on the Arduino StackExchange. Open an issue here only if you are very confident that you have found an issue in the library itself.
  2. Post one (an preferably only one) small program illustrating your problem. Post it as text, not as a screen shot.
  3. Clearly describe your problem: explain what you are trying to achieve, what behavior you expect from your program, and what behavior you see instead.

Also note that the KeyboardStateView tool you use is not something everybody knows about and is poorly documented. It is unclear whether the “key codes” it displays are USB usage codes, legacy scan codes as used in old serial keyboards, or OS-specific codes. Note that codes used by this library are neither of those.