blob: cfa35eedcb8c45bacb907f74456594dd2214f6fe (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
// SDLOnKeyboardInput.m
//
#import "SDLOnKeyboardInput.h"
#import "NSMutableDictionary+Store.h"
#import "SDLNames.h"
@implementation SDLOnKeyboardInput
- (instancetype)init {
if (self = [super initWithName:SDLNameOnKeyboardInput]) {
}
return self;
}
- (void)setEvent:(SDLKeyboardEvent)event {
[parameters sdl_setObject:event forName:SDLNameEvent];
}
- (SDLKeyboardEvent)event {
NSObject *obj = [parameters sdl_objectForName:SDLNameEvent];
return (SDLKeyboardEvent)obj;
}
- (void)setData:(NSString *)data {
[parameters sdl_setObject:data forName:SDLNameData];
}
- (NSString *)data {
return [parameters sdl_objectForName:SDLNameData];
}
@end
|