blob: 3555780fc3c8b950fd16420e031eb3ed5ef93467 (
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
//
// SDLButtonPress.m
//
#import "SDLButtonPress.h"
#import "SDLNames.h"
#import "NSMutableDictionary+Store.h"
NS_ASSUME_NONNULL_BEGIN
@implementation SDLButtonPress
- (instancetype)init {
if (self = [super initWithName:SDLNameButtonPress]) {
}
return self;
}
- (instancetype)initWithButtonName:(SDLButtonName) buttonName moduleType:(SDLModuleType) moduleType {
self = [self init];
if (!self) {
return nil;
}
self.buttonName = buttonName;
self.moduleType = moduleType;
return self;
}
- (void)setModuleType:(SDLModuleType)moduleType {
[parameters sdl_setObject:moduleType forName:SDLNameModuleType];
}
- (SDLModuleType)moduleType {
return [parameters sdl_objectForName:SDLNameModuleType];
}
- (void)setButtonName:(SDLButtonName)buttonName {
[parameters sdl_setObject:buttonName forName:SDLNameButtonName];
}
- (SDLButtonName)buttonName {
return [parameters sdl_objectForName:SDLNameButtonName];
}
- (void)setButtonPressMode:(SDLButtonPressMode)buttonPressMode {
[parameters sdl_setObject:buttonPressMode forName:SDLNameButtonPressMode];
}
- (SDLButtonPressMode)buttonPressMode {
return [parameters sdl_objectForName:SDLNameButtonPressMode];
}
@end
NS_ASSUME_NONNULL_END
|