• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Converting HID keyboards usages to characters ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Converting HID keyboards usages to characters ?


  • Subject: Re: Converting HID keyboards usages to characters ?
  • From: Bill Cheeseman <email@hidden>
  • Date: Thu, 19 Jun 2008 06:09:46 -0400
  • Thread-topic: Converting HID keyboards usages to characters ?

on 2008-06-19 4:32 AM, Fred Leboucher at email@hidden wrote:

> This technical note from Apple
> (http://developer.apple.com/technotes/tn2002/tn2056.html) details the file
> formats available for keyboard layouts, but there's no information about the
> way
> to:
> - get info about the currently selected one
> - a method to convert a key code to a unicode char (parsing the whole XML file
> and doing the conversion by hand would be quite nasty, assuming that you even
> know how to do the first step: know what layout is to be used)
>
> Anyone knows how to do that ?

Read up on the UCKeyTranslate function in unicode utilities.

Also read this thread for Leopard source code from Michael Grady:
<http://lists.apple.com/archives/carbon-dev/2007/Jun/msg00861.html>,

and this thread for Tiger source code from Dorian Johnson: <http://
www.cocoabuilder.com/archive/message/cocoa/2007/6/9/184395>.

--

Bill Cheeseman - email@hidden
Quechee Software, Quechee, Vermont, USA
www.quecheesoftware.com

PreFab Software - www.prefabsoftware.com


_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Converting HID keyboards usages to characters ? (From: Fred Leboucher <email@hidden>)

  • Prev by Date: Re: Converting to NSPersistentDocument
  • Next by Date: Re: Send Key Event to Focused Window
  • Previous by thread: Re: Converting HID keyboards usages to characters ?
  • Next by thread: #import importing twice?
  • Index(es):
    • Date
    • Thread