2010-09-30 19:03:48 +00:00
|
|
|
//
|
|
|
|
// TouchPanel.h
|
|
|
|
// XNI
|
|
|
|
//
|
|
|
|
// Created by Matej Jan on 29.9.10.
|
|
|
|
// Copyright 2010 Retronator. All rights reserved.
|
|
|
|
//
|
|
|
|
|
|
|
|
#import <Foundation/Foundation.h>
|
|
|
|
|
|
|
|
#import "Retronator.Xni.Framework.classes.h"
|
|
|
|
#import "Retronator.Xni.Framework.Input.Touch.classes.h"
|
|
|
|
|
|
|
|
@interface TouchPanel : NSObject {
|
2010-10-01 02:36:21 +00:00
|
|
|
int displayWidth;
|
|
|
|
int displayHeight;
|
|
|
|
DisplayOrientation displayOrientation;
|
|
|
|
GestureType enabledGestures;
|
|
|
|
|
|
|
|
NSMutableSet *addTouches;
|
|
|
|
NSMutableSet *removeTouches;
|
|
|
|
NSMutableSet *releaseTouches;
|
|
|
|
NSMutableSet *lateReleaseTouches;
|
|
|
|
NSMutableDictionary *touchLocations;
|
2010-09-30 19:03:48 +00:00
|
|
|
}
|
|
|
|
|
2010-10-01 02:36:21 +00:00
|
|
|
@property (nonatomic) int displayWidth;
|
|
|
|
@property (nonatomic) int displayHeight;
|
|
|
|
@property (nonatomic) DisplayOrientation displayOrientation;
|
|
|
|
@property (nonatomic) GestureType enabledGestures;
|
|
|
|
@property (nonatomic, readonly) BOOL isGestureAvailable;
|
2010-09-30 19:03:48 +00:00
|
|
|
|
2010-11-15 17:23:13 +00:00
|
|
|
+ (TouchCollection*) getState;
|
|
|
|
+ (GestureSample*) readGesture;
|
|
|
|
|
|
|
|
+ (TouchPanel*) getInstance;
|
|
|
|
|
2010-10-01 02:36:21 +00:00
|
|
|
- (TouchCollection*) getState;
|
|
|
|
- (GestureSample*) readGesture;
|
2010-09-30 19:03:48 +00:00
|
|
|
|
|
|
|
@end
|