@@ -28,12 +28,10 @@ public class TuioInput : InputSource {
2828 /// Handles touches disappearing and reappearing again in short period of time.
2929 /// </summary>
3030 //public bool PreventTouchFlicker = true;
31-
3231 /// <summary>
3332 /// Maximum distance in cm for a new touch to be considered as disappeared old touch.
3433 /// </summary>
3534 //public float TouchFlickerDistance = 0.5f;
36-
3735 /// <summary>
3836 /// Maximum time in seconds while touch is considered to be still alive.
3937 /// </summary>
@@ -42,11 +40,10 @@ public class TuioInput : InputSource {
4240 #endregion
4341
4442 #region Private variables
45-
46- private TUIOServer server ;
43+ private TuioServer server ;
4744
4845 private readonly object sync = new object ( ) ;
49- private readonly Dictionary < TUIOCursor , int > cursorToInternalId = new Dictionary < TUIOCursor , int > ( ) ;
46+ private readonly Dictionary < TuioCursor , int > cursorToInternalId = new Dictionary < TuioCursor , int > ( ) ;
5047
5148 #endregion
5249
@@ -55,13 +52,11 @@ public class TuioInput : InputSource {
5552 protected override void Start ( ) {
5653 base . Start ( ) ;
5754
58- server = new TUIOServer ( ) ;
55+ server = new TuioServer ( ) ;
5956 server . CursorAdded += OnCursorAdded ;
6057 server . CursorUpdated += OnCursorUpdated ;
6158 server . CursorRemoved += OnCursorRemoved ;
6259 server . Connect ( ) ;
63-
64- updateServerProperties ( ) ;
6560 }
6661
6762 protected override void Update ( ) {
@@ -83,18 +78,11 @@ protected override void OnDestroy() {
8378 #endregion
8479
8580 #region Private functions
86-
87- private void updateServerProperties ( ) {
88- server . PreventTouchFlicker = false ; // PreventTouchFlicker;
89- //server.TouchFlickerDistance = TouchFlickerDistance*TouchManager.Instance.DotsPerCentimeter/ScreenWidth;
90- //server.TouchFlickerDelay = TouchFlickerDelay;
91- }
92-
9381 #endregion
9482
9583 #region Event handlers
9684
97- private void OnCursorAdded ( object sender , TUIOCursorEventArgs tuioCursorEventArgs ) {
85+ private void OnCursorAdded ( object sender , TuioCursorEventArgs tuioCursorEventArgs ) {
9886 var cursor = tuioCursorEventArgs . Cursor ;
9987 lock ( sync ) {
10088 var x = cursor . X * ScreenWidth ;
@@ -103,7 +91,7 @@ private void OnCursorAdded(object sender, TUIOCursorEventArgs tuioCursorEventArg
10391 }
10492 }
10593
106- private void OnCursorUpdated ( object sender , TUIOCursorEventArgs tuioCursorEventArgs ) {
94+ private void OnCursorUpdated ( object sender , TuioCursorEventArgs tuioCursorEventArgs ) {
10795 var cursor = tuioCursorEventArgs . Cursor ;
10896 lock ( sync ) {
10997 int existingCursor ;
@@ -116,7 +104,7 @@ private void OnCursorUpdated(object sender, TUIOCursorEventArgs tuioCursorEventA
116104 }
117105 }
118106
119- private void OnCursorRemoved ( object sender , TUIOCursorEventArgs tuioCursorEventArgs ) {
107+ private void OnCursorRemoved ( object sender , TuioCursorEventArgs tuioCursorEventArgs ) {
120108 var cursor = tuioCursorEventArgs . Cursor ;
121109 lock ( sync ) {
122110 int existingCursor ;
0 commit comments