spiegel-keyman/mac/KeymanEngine4Mac/KeymanEngine4Mac/KME/OnScreenKeyboard/OSKKey.m
2017-08-10 13:11:52 +07:00

29 lines
561 B
Objective-C

//
// OSKKey.m
// KeymanEngine4Mac
//
// Created by Serkan Kurt on 1/07/2015.
// Copyright (c) 2017 SIL International. All rights reserved.
//
#import "OSKKey.h"
@implementation OSKKey
- (id)initWithKeyCode:(NSUInteger)keyCode caption:(NSString *)caption scale:(CGFloat)scale {
self = [super init];
if (self) {
_keyCode = keyCode;
if (caption == nil)
_caption = @"";
else
_caption = [NSString stringWithString:caption];
_scale = scale;
}
return self;
}
@end