Improve the Keyboard library

Hello everybody,

It's my first message on the arduino forum, i'm a beginner. I want to talk about the Keyboard library. It's a very good library but i'm trying to improve it.

I'm french, and in french we have a lot of special chars like "ù", "é", "è" or "à" for examples, and the keyboard library doesn't manage them. And i know that other languages have special chars. But today i didn't found someone who have worked on this subject.

So i'm trying to improve the library. I have already succeed to grow up the memory from 128 to 256 chars. But now i don't knox how to implement the "CTRL+ALT" modifier...

Is anybody have an idea ? And is anybody have a tool to have directly the scan codes of my keyboard ?

Sorry for my poor english !

Bye
JulC

KeyboardFrench.cpp (10.1 KB)

This might be helpful to you:

My understanding is that Teensyduino has support for other language keyboard layouts also and some of the teensy boards use the same ATmega32U4 microcontroller like the Arduino Leonardo, Micro, etc. but I haven't tried it.

JulC:
But now i don't knox how to implement the "CTRL+ALT" modifier...

I'm not sure exactly what you mean but of course you can do this:

     Keyboard.press(KEY_LEFT_CTRL);
      Keyboard.press(KEY_LEFT_ALT);
      Keyboard.press('u');
      delay(100);
      Keyboard.releaseAll();

Thank you very much for your answer !I'll look at this tonight !

For your example code, it's arduino code. I want to implement CTRL and ALT keys directly in the library.