-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTouch.Listener.h
68 lines (52 loc) · 1.55 KB
/
Touch.Listener.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
/**
* iOS Touch Listener (Gesture Listener)
* ------------------------------------------------------------------
* Copyright (c) Chi-Tai Dang
*
* @author Chi-Tai Dang
* @version 1.0
* @remarks
*
* This file is part of the Environs framework developed at the
* Lab for Human Centered Multimedia of the University of Augsburg.
* http://hcm-lab.de/environs
*
* Environ is free software; you can redistribute it and/or modify
* it under the terms of the Eclipse Public License v1.0.
* A copy of the license may be obtained at:
* http://www.eclipse.org/org/documents/epl-v10.html
* --------------------------------------------------------------------
*/
#include "Environs.Platforms.h"
#if ( defined(ENVIRONS_IOS) || defined(ENVIRONS_OSX) )
# import <Foundation/Foundation.h>
# ifdef ENVIRONS_IOS
//******** iOS *************
# import <UIKit/UIKit.h>
# else
//******** OSX *************
# import <Cocoa/Cocoa.h>
# define UIView NSView
# define UIEvent NSEvent
# define UIGestureRecognizer NSGestureRecognizer
# endif
typedef void (^TouchesEventEntity)(NSSet * touches, UIEvent * event);
#ifdef __cplusplus
namespace environs
{
class Instance;
}
#endif
@interface TouchListener : UIGestureRecognizer
{
TouchesEventEntity touchesBeganCallback;
@public
#ifdef __cplusplus
environs::Instance * env;
#endif
int hEnvirons;
}
- (void) UpdateView: (UIView *)view Portal:(id)portal;
@property(copy) TouchesEventEntity touchesBeganCallback;
@end
#endif