// Created by Justin Williams on 7/26/09. // Copyright 2009 Second Gear. All rights reserved. #include <Carbon/Carbon.h> #include <CoreServices/CoreServices.h> @interface SGKeyCodeTranslator :
NSObject { TISInputSourceRef keyboardLayout; const UCKeyboardLayout *keyboardLayoutData; NSUInteger keyTranslateState; @property (nonatomic, assign) TISInputSourceRef keyboardLayout; - (id)initWithKeyboardLayout:(TISInputSourceRef)theLayout; - (NSString *)translateKeyCode:(short)theKeyCode;