1
0
mirror of https://github.com/thes3m/XNI synced 2024-12-26 13:26:06 +01:00
Matej Jan d04d7bf8f3 All around update and fixes
git-svn-id: http://xni.googlecode.com/svn/XNI@104 ac433895-eea3-a490-d80a-17149a75e588
2012-05-14 08:40:49 +00:00

48 lines
1.1 KiB
Objective-C

//
// TouchPanel.h
// XNI
//
// Created by Matej Jan on 29.9.10.
// Copyright 2010 Retronator. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#import "Retronator.Xni.Framework.classes.h"
#import "Retronator.Xni.Framework.Input.Touch.classes.h"
@class GameView;
@interface TouchPanel : NSObject {
GameView *view;
int displayWidth;
int displayHeight;
DisplayOrientation displayOrientation;
GestureType enabledGestures;
NSMutableSet *addTouches;
NSMutableSet *removeTouches;
NSMutableSet *releaseTouches;
NSMutableSet *lateReleaseTouches;
NSMutableDictionary *touchLocations;
NSMutableDictionary *uiTouchesForLocations;
}
@property (nonatomic) int displayWidth;
@property (nonatomic) int displayHeight;
@property (nonatomic) DisplayOrientation displayOrientation;
@property (nonatomic) GestureType enabledGestures;
@property (nonatomic, readonly) BOOL isGestureAvailable;
+ (TouchCollection*) getState;
+ (GestureSample*) readGesture;
+ (TouchPanel*) getInstance;
- (TouchCollection*) getState;
- (GestureSample*) readGesture;
@end