CoCalc provides the best real-time collaborative environment for Jupyter Notebooks, LaTeX documents, and SageMath, scalable from individual users to large groups and classes!
CoCalc provides the best real-time collaborative environment for Jupyter Notebooks, LaTeX documents, and SageMath, scalable from individual users to large groups and classes!
Path: blob/master/ios/iCade/iCadeReaderView.h
Views: 1401
/*1Copyright (C) 2011 by Stuart Carnie23Permission is hereby granted, free of charge, to any person obtaining a copy4of this software and associated documentation files (the "Software"), to deal5in the Software without restriction, including without limitation the rights6to use, copy, modify, merge, publish, distribute, sublicense, and/or sell7copies of the Software, and to permit persons to whom the Software is8furnished to do so, subject to the following conditions:910The above copyright notice and this permission notice shall be included in11all copies or substantial portions of the Software.1213THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR14IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,15FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE16AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER17LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,18OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN19THE SOFTWARE.20*/2122#import <UIKit/UIKit.h>23#import "iCadeState.h"2425/*26UP ON,OFF = w,e27RT ON,OFF = d,c28DN ON,OFF = x,z29LT ON,OFF = a,q30A ON,OFF = y,t31B ON,OFF = h,r32C ON,OFF = u,f33D ON,OFF = j,n34E ON,OFF = i,m35F ON,OFF = k,p36G ON,OFF = o,g37H ON,OFF = l,v38*/3940@protocol iCadeEventDelegate <NSObject>4142@optional43- (void)stateChanged:(iCadeState)state;44- (void)buttonDown:(iCadeState)button;45- (void)buttonUp:(iCadeState)button;4647@end4849@interface iCadeReaderView : UIView<UIKeyInput> {50UIView *inputView;51iCadeState _iCadeState;52id<iCadeEventDelegate> __weak _delegate;5354struct {55bool stateChanged:1;56bool buttonDown:1;57bool buttonUp:1;58} _delegateFlags;59}6061@property (nonatomic, assign) iCadeState iCadeState;62@property (nonatomic, weak) id<iCadeEventDelegate> delegate;63@property (nonatomic, assign) BOOL active;6465@end666768