Page 1 of 1

Problem defining KeyCodes in Librarie

Posted: Wed Aug 12, 2020 8:14 am
by frrbabos
Hello Everyone,

I bought myself a Bad-USB Stick and im trying to program it with Arduino.

The Problem is, the USB-Stick has a defined American Keyboard Layout, so I had to change some Code in the Keyboard Librarie.

I managed to get all the keys except the (') Apostropth aka Single Quote.

I tried everything but the KeyCode for the Single-Quote which is (0x34) just doesnt seem to work on my German Keyboard-Layout.

Does someone know how I need to define it?

When I type in Arduino:

Keyboard.print("Hello there 'Justin', how are you doing?");

It outputs:

Hello there äJustinä, how are you doing?

I guess I have to get the KeyCode of (ä) and need to define it to output (') aka SingleQuote?

Can someone please help me? I have been raging..

I've even gonne to blogs and forums like Instructables:https://www.instructables.com/community/ and https://flaviobabos.com.br/melhores-pro ... m-arduino/ trying to solve this problem but I didn't succeed..