minivmac4ios/Mini vMac/KBKeyboardView.h
2016-05-14 13:01:02 +02:00

30 lines
699 B
Objective-C

//
// KBKeyboardView.h
// BasiliskII
//
// Created by Jesús A. Álvarez on 22/03/2014.
// Copyright (c) 2014 namedfork. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "KBKeyboardLayout.h"
@class KBKey;
@protocol KBKeyboardViewDelegate <NSObject>
- (void)keyDown:(int)scancode;
- (void)keyUp:(int)scancode;
@optional
- (void)hideKeyboard:(nullable id)sender;
@end
@interface KBKeyboardView : UIView
@property (weak, nonatomic, nullable) id<KBKeyboardViewDelegate> delegate;
@property (nonatomic, strong, nullable) KBKeyboardLayout *layout;
@property (nonatomic, readonly, nonnull) NSArray<KBKey*>* keys;
@property (nonatomic, readonly, nonnull) NSArray<KBKey*>* stickyKeys;
@end