X-Git-Url: https://git.yukkurigames.com/?p=enjoyable.git;a=blobdiff_plain;f=Classes%2FNJKeyInputField.h;h=bc1876c129ac02b7666887ef4212b68dc1388f65;hp=c17fdaa712ee33022f40112d7ed2bbdedcd95f79;hb=281e575060f936fd9483d1cf6416851b3783fe42;hpb=c63310ae5acaaeb7feb6dc63ba8029683655d75a diff --git a/Classes/NJKeyInputField.h b/Classes/NJKeyInputField.h index c17fdaa..bc1876c 100644 --- a/Classes/NJKeyInputField.h +++ b/Classes/NJKeyInputField.h @@ -17,8 +17,7 @@ extern const CGKeyCode NJKeyInputFieldEmpty; // resigns its first responder status. It can also inform a // special delegate when its content changes. -+ (NSString *)stringForKeyCode:(CGKeyCode)keyCode; - // Give the string name for a virtual key code. ++ (NSString *)displayNameForKeyCode:(CGKeyCode)keyCode; @property (nonatomic, weak) IBOutlet id delegate; @@ -28,14 +27,14 @@ extern const CGKeyCode NJKeyInputFieldEmpty; // inform the delegate. @property (nonatomic, readonly) BOOL hasKeyCode; - // True if any key is active, false otherwise. + // YES if any key is set, NO otherwise. - (void)clear; // Clear the currently active key and call the delegate. @end -@protocol NJKeyInputFieldDelegate +@protocol NJKeyInputFieldDelegate - (void)keyInputField:(NJKeyInputField *)keyInput didChangeKey:(CGKeyCode)keyCode;