Quantcast
Channel: bugs, errors - openFrameworks
Viewing all articles
Browse latest Browse all 636

Bad key (0) and keycode (-1) in Caps Lock mode

$
0
0

@lilive wrote:

Hi,
I’ve got wrong values for one of the keyboard key with this code:

void ofApp::keyPressed(ofKeyEventArgs & args)
{
	cout << "key " << args.key << endl;
	cout << "keycode " << args.keycode << endl;
}

When in Caps Lock mode, the key value is 0 and the keycode value is -1 for the key ‘ù’.
Is it normal ?

The values for all the others keys seem to be fine.

I’ve got an AZERTY french keyboard. Using QtCreator OF 0.10.0 and Windows 7.

Here’s the output for this key:

// When Caps Lock is off everyting is fine...
key 249
keycode 39
// ...including with the shift key pressed:
key 37
keycode 39

// When Caps Lock is on this is not right...
key 0
keycode -1
// ...but it remains ok with the shift key pressed:
key 249
keycode 39

Do you think there is something I can do ?

[edit] I also have the same error with the key ‘à’

Posts: 3

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 636

Trending Articles