Skip to content

Commit

Permalink
Remove unused properties
Browse files Browse the repository at this point in the history
  • Loading branch information
Reeywhaar committed Sep 10, 2023
1 parent 1a66403 commit 610ce4d
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 51 deletions.
3 changes: 0 additions & 3 deletions MiddleMe/OpenMultitouchSupport/OpenMTEvent.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,6 @@
@interface OpenMTEvent: NSObject

@property (strong, readwrite) NSArray *touches;
@property (assign, readwrite) int deviceID;
@property (assign, readwrite) int frameID;
@property (assign, readwrite) double timestamp;

@end

Expand Down
4 changes: 0 additions & 4 deletions MiddleMe/OpenMultitouchSupport/OpenMTEvent.m
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,5 @@

@implementation OpenMTEvent

- (NSString *)description {
return [NSString stringWithFormat:@"Touches: %@, Device ID: %i, Frame ID: %i, Timestamp: %f", _touches.description, _deviceID, _frameID, _timestamp];
}

@end

8 changes: 0 additions & 8 deletions MiddleMe/OpenMultitouchSupport/OpenMTManager.m
Original file line number Diff line number Diff line change
Expand Up @@ -215,16 +215,8 @@ static void contactEventHandler(MTDeviceRef eventDevice, MTTouch eventTouches[],

OpenMTEvent *event = OpenMTEvent.new;
event.touches = touches;
event.deviceID = (int)eventDevice;
event.frameID = frame;
event.timestamp = timestamp;

[OpenMTManager.sharedManager handleMultitouchEvent:event];
}

//static void pathEventHandler(MTDeviceRef device, long pathID, long state, MTTouch* touch) {
// OpenMTTouch *otouch = [[OpenMTTouch alloc] initWithMTTouch:touch];
// [OpenMTManager.sharedManager handlePathEvent:otouch];
//}

@end
20 changes: 0 additions & 20 deletions MiddleMe/OpenMultitouchSupport/OpenMTTouch.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,31 +12,11 @@
#import <Foundation/Foundation.h>
#import "OpenMTInternal.h"

typedef NS_ENUM(NSUInteger, OpenMTState) {
OpenMTStateNotTouching = 0,
OpenMTStateStarting,
OpenMTStateHovering,
OpenMTStateMaking,
OpenMTStateTouching,
OpenMTStateBreaking,
OpenMTStateLingering,
OpenMTStateLeaving
};

@interface OpenMTTouch: NSObject

- (id)initWithMTTouch:(MTTouch *)touch;

//@property (assign, readonly) int identifier;
//@property (assign, readonly) OpenMTState state;
@property (assign, readonly) float posX, posY;
//@property (assign, readonly) float velX, velY;
//@property (assign, readonly) float total;
//@property (assign, readonly) float pressure;
//@property (assign, readonly) float minorAxis, majorAxis;
//@property (assign, readonly) float angle;
//@property (assign, readonly) float density;
//@property (assign, readonly) double timestamp;

@end

Expand Down
16 changes: 0 additions & 16 deletions MiddleMe/OpenMultitouchSupport/OpenMTTouch.m
Original file line number Diff line number Diff line change
Expand Up @@ -12,27 +12,11 @@ @implementation OpenMTTouch

- (id)initWithMTTouch:(MTTouch *)touch {
if (self = [super init]) {
// _identifier = touch->identifier;
// _state = touch->state;
_posX = touch->normalizedPosition.position.x;
_posY = touch->normalizedPosition.position.y;
// _velX = touch->normalizedPosition.velocity.x;
// _velY = touch->normalizedPosition.velocity.y;
// _total = touch->total;
// _pressure = touch->pressure;
// _minorAxis = touch->minorAxis;
// _majorAxis = touch->majorAxis;
// _angle = touch->angle;
// _density = touch->density;
// _timestamp = touch->timestamp;
}
return self;
}

//- (NSString *)description {
// return [NSString stringWithFormat:@"ID: %i, State: %lu, Position: [%f, %f], Velocity: [%f, %f], Total: %f, Pressure: %f, Minor: %f, Major: %f, Angle: %f, Density: %f, Timestamp: %lf",
// _identifier, _state, _posX, _posY, _velX, _velY, _total, _pressure, _minorAxis, _majorAxis, _angle, _density, _timestamp];
//}

@end

0 comments on commit 610ce4d

Please sign in to comment.