Page 1 of 1

Convert Key Code to Character Code

Posted: Fri 19 Nov, 2010 4:04 am
by puromtec
Is there any easy way to convert from the Key Code from GetKey to the character code for TI display (vputmap, etc.)? I have searched for a while and have not found a method. Of course, I'm doing a bit of a text editor routine and this is a must. I am about to do a mapping myself.

I noticed two things:
1. The order of character's does not match the corresponding keycode order for non alpha characters / * !...like those.

2. The lower case key codes (using the set lwrCaseActive, (IY + appLwrCaseFlag)) do not show in the ti83Plus.inc (or I can't read).

Guidance appreciated.

Re: Convert Key Code to Character Code

Posted: Fri 19 Nov, 2010 11:17 am
by benryves
I've not used it myself, but KeyToString seems to do what you need.

Re: Convert Key Code to Character Code

Posted: Fri 19 Nov, 2010 12:08 pm
by NanoWar

Re: Convert Key Code to Character Code

Posted: Fri 19 Nov, 2010 2:12 pm
by benryves
NanoWar wrote:This uses key tables:
http://www.ticalc.org/archives/files/fi ... 39943.html
It also uses GetCSC rather than GetKey. :)