mirror of
https://github.com/keymanapp/keyman.git
synced 2026-08-13 20:29:24 +00:00
29 lines
561 B
Objective-C
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
|