2015-10-26 22:26:34 -04:00
|
|
|
#import <UIKit/UIKit.h>
|
2015-10-31 20:38:27 -04:00
|
|
|
#include "PH_Generic.h"
|
2015-10-26 22:26:34 -04:00
|
|
|
|
|
|
|
@interface VirtualPadItem : NSObject
|
|
|
|
|
|
|
|
@property CGRect bounds;
|
|
|
|
@property(weak) UITouch* touch;
|
2015-10-31 20:38:27 -04:00
|
|
|
@property CPH_Generic* padHandler;
|
2015-10-31 19:20:10 -04:00
|
|
|
@property UIImage* image;
|
2015-10-26 22:26:34 -04:00
|
|
|
|
2018-04-30 21:01:23 +01:00
|
|
|
- (void)draw:(CGContextRef)context;
|
|
|
|
- (void)onPointerDown:(CGPoint)position;
|
|
|
|
- (void)onPointerMove:(CGPoint)position;
|
|
|
|
- (void)onPointerUp;
|
2015-10-26 22:26:34 -04:00
|
|
|
|
|
|
|
@end
|