Pages: [1]   Go Down
Author Topic: Lonardo ENTER vs. NUMPAD ENTER  (Read 295 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Jr. Member
Karma: 2
Posts: 73
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

A am trying to create a simple program for sending texts to the PS3 using keyboard emulation of Leonardo.

It works but the ENTER key is not accepted by the console. I tryed with a real usb keyboard and the enter key in numeric keypad is not accepted by the console. Then, I must asume that Leonardo libraries are sending this key instead of the normal enter key.

I see in the code that KEY_RETURN is defined as 0xB0 but I checks the documentation about scancodes in internet (like and the codes are very different, then I understand that throug usb the codes sent are different: i.e. The scancode for F1 is 07 but the key definitions in arduino's USBAPI.h says #define KEY_F1 0xC2

Any help please on finding the right code or locating the problem with the PS3?

Update: I found this but it says KP Enter is 58 and normal Enter is 28, but USBApi.h indicates KEY_RETURN=0xb0.

« Last Edit: September 08, 2013, 04:11:54 am by anv » Logged

Global Moderator
Offline Offline
Brattain Member
Karma: 502
Posts: 19085
Lua rocks!
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Try sending \n (newline), that is:

Keyboard.print ("\n");

Pages: [1]   Go Up
Jump to: