user1388320
user1388320

Reputation:

Virtual Key Code converter (character to int)

There's a way to convert a character (@"A") to CGKeyCode (cocoa development)? I've already tried a lot of "solutions", but none worked.

I already implemented the keyCodeForKeyString method, but it is really short and don't include all of the characters in a keyboard.

Upvotes: 3

Views: 2020

Answers (1)

stephenhouser
stephenhouser

Reputation: 385

This question appears to answer the same (or very similar) question: How to convert ASCII character to CGKeyCode?

Upvotes: 1

Related Questions