Virtual usb Keyboard doesn't send CTRL key.

Hi,

I've managed to get a Virtual USB keyboard shield to work.
Now i want to let the keyboard send the Control Key (in a perfect world it would stay pressed, if i keep pressing it)

At first i found that this key is not described in the library.. So i Added a new key called "KEY_LEFT_CTRL" and assigned "0xE0" to it (224) but it seems that the library only supports key under a value of 100. 99 works fine.... (would be keypad dot on american layout, and keypad comma on german layout)

does anyone know how to add buttons above 100?

Edit: oh, forgot to link the Library...
http://code.google.com/p/vusb-for-arduino/

The control keys are typically modifiers. When the control key and another key are pressed together, the result is a different value sent than when the key is pressed by itself.

Are you wanting to send a value when the control key is pressed by itself? Why?

First off, sorry that it took so long to send an answer, but i forgot to set the reminder when someone answers the topic ^^

The Reason is realy simple, i want to send CTRL because i want to activate Push-To-Talk on Teamspeak, without beeing interrupt in normal working on my keyboard...

I allready figured out how to expand the HID description from 101 keys to 231, but my windows machine seems to ignore this, my linux notebook shows more information with "evtest" and most keys seems to work, but not realy on windows...

The Reason is realy simple, i want to send CTRL because i want to activate Push-To-Talk on Teamspeak, without beeing interrupt in normal working on my keyboard...

If you change the program to send something when you press the ctrl key, you will mess with a lot of other functionality. Ctrl-C, Ctrl-V, Ctrl-X, Ctrl-P are just a few of the keys I use on Windows all the time.

I think you should find some other "unused" key to map to the functionality you need.

What is Teamspeak? Is it a PC application? If so, why does it need to be activated by a keyboard connected to the Arduino which is connected to the PC?

Sorry to didn't mention that, but i realy know most of the shortcuts wich are based on CTRL. But it needs to be a Modifier key, because:

  1. if it would be a normal charackter, it would spam any other application with key hits.
  2. if you for example use "v" as the PTT button, your windows keeps beeping because of no file found starting with "v" (got some people in Teamspeak who are useing normal letters, and even i can here if they got an file starting with "v" on their desktops / folders

If you could hint me a modifier key wich does not give some unwanted behaviour, please tell me wich :wink:
I'm also using "alt" and "shift" to whisper to people, but shift was a horrible idea because of german nouns ans other things wich needs to be writen in capital letters :wink:

btw. Teamspeak is a voice chatt application, mostly used by gamers (in my case WoW) to comunicate easily while gaming.

In my case i would have a footswitch (hopefully sometime some sort of guitar foot switch) to normaly speak, or whisper to different people.

I also thought about writing a plugin for Teamspeak 3 to read the serial connection and then activate the different things. but as i'm useing 64Bit Windows, it would to have be in 64Bit, and i have absolutly no idea how to get the SDK to compile for 64Bit plugins.

In other words, accutally i need CTRL or ALT in the moment :wink:

P.s. I'm not shure, but i think a HID-Joystick would work also, but have to figure this out..