Re: Character to Keycode
Re: Character to Keycode
- Subject: Re: Character to Keycode
- From: Ken Woodruff <email@hidden>
- Date: Mon, 19 Mar 2007 20:41:18 -0700
Hey Daniel,
I was in a similar spot a couple years ago and did in fact create a
lookup table, with the initial implementation inspired by some VNC
code (look for the definition of keyTable[] in the file linked below).
http://www.google.com/codesearch?
hl=en&q=show:su72IH3qjIs:fsKY6W4AwsM:sqZNFkPZ0ZY&sa=N&ct=rd&cs_p=http://
distfiles.master.finkmirrors.net/
kdenetwork-3.0.7.tar.bz2&cs_f=kdenetwork-3.0.7/krfb/libvncserver/mac.c
--Ken
On Mar 19, 2007, at 12:35 PM, Daniel Tse wrote:
Hi There,
Can someone please point me to how a person can convert a string
into a string of keycodes? Do I have to create a lookup table? I'm
trying to use something like the CGPostKeyboardEvent for my
accessibility app except the user can store up strings and then
post the entire string. I don't want to have the user memorize all
the keycodes for "Dear Mom,"... what is the proper approach? My
users are also bilingual (Canadian - French/English). I would be
happy with English but it'd be nice to do other languages with
their accents as well.
Am I missing a method? I think I have to break the string down into
individual characters and then convert each character to a
keycode... is that right? How do I go from character to keycode?
Thanks!
Daniel
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Accessibility-dev mailing list (Accessibility-
email@hidden)
Help/Unsubscribe/Update your Subscription:
40nwlink.com
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Accessibility-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden