Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Virtual Key Code converter (character to int)

Tags:

cocoa

keycode

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.


1 Answers

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

like image 73
stephenhouser Avatar answered Nov 28 '25 16:11

stephenhouser



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!