X-Git-Url: https://git.yukkurigames.com/?p=enjoyable.git;a=blobdiff_plain;f=Classes%2FNJKeyInputField.h;h=9a7a3af9863cd3b86322ec8ea0cf856faf413b4e;hp=ad026d3f4f0cb163f936f44d20bf727911fb8e99;hb=ef24a9ad6b36ca8a47c878c02b79b30e43933197;hpb=9a400b562a83ed0ef9449cded72152d1e4860f5c diff --git a/Classes/NJKeyInputField.h b/Classes/NJKeyInputField.h index ad026d3..9a7a3af 100644 --- a/Classes/NJKeyInputField.h +++ b/Classes/NJKeyInputField.h @@ -20,7 +20,7 @@ extern CGKeyCode NJKeyInputFieldEmpty; + (NSString *)stringForKeyCode:(CGKeyCode)keyCode; // Give the string name for a virtual key code. -@property (nonatomic, weak) IBOutlet id keyDelegate; +@property (nonatomic, weak) IBOutlet id delegate; @property (nonatomic, assign) CGKeyCode keyCode; // The currently displayed key code, or NJKeyInputFieldEmpty if no @@ -37,6 +37,7 @@ extern CGKeyCode NJKeyInputFieldEmpty; @protocol NJKeyInputFieldDelegate +@optional - (void)keyInputField:(NJKeyInputField *)keyInput didChangeKey:(CGKeyCode)keyCode; - (void)keyInputFieldDidClear:(NJKeyInputField *)keyInput;