Skip to content
This repository has been archived by the owner on Oct 29, 2024. It is now read-only.

Commit

Permalink
refactor: KIF
Browse files Browse the repository at this point in the history
Signed-off-by: 82Flex <[email protected]>
  • Loading branch information
Lessica committed Jan 21, 2024
1 parent 83623ce commit 179b62f
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 3 deletions.
12 changes: 11 additions & 1 deletion sources/KIF/IOHIDEvent+KIF.h
Original file line number Diff line number Diff line change
@@ -1,2 +1,12 @@
//
// IOHIDEvent+KIF.h
// KIF
//
// Created by Thomas Bonnin on 7/6/15.
//

#import <Foundation/Foundation.h>
#import "IOKit+SPI.h"

typedef struct __IOHIDEvent * IOHIDEventRef;
IOHIDEventRef kif_IOHIDEventWithTouches(NSArray *touches) CF_RETURNS_RETAINED;
IOHIDEventRef kif_IOHIDEventWithTouches(NSArray *touches) CF_RETURNS_RETAINED;
9 changes: 8 additions & 1 deletion sources/KIF/IOHIDEvent+KIF.m
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
//
// IOHIDEvent+KIF.m
// KIF
//
// Created by Thomas Bonnin on 7/6/15.
//

#import "IOHIDEvent+KIF.h"
#import <UIKit/UIKit.h>
#import <mach/mach_time.h>
Expand Down Expand Up @@ -204,4 +211,4 @@ IOHIDEventRef kif_IOHIDEventWithTouches(NSArray *touches)
}

return handEvent;
}
}
3 changes: 2 additions & 1 deletion sources/KIF/UITouch-KIFAdditions.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
// Licensed to Square, Inc. under one or more contributor license agreements.
// See the LICENSE file distributed with this work for the terms under
// which Square, Inc. licenses this file to you.
//

#import "IOHIDEvent+KIF.h"
#import "UITouch+Private.h"
Expand All @@ -21,4 +22,4 @@
- (void)setLocationInWindow:(CGPoint)location;
- (void)setPhaseAndUpdateTimestamp:(UITouchPhase)phase;

@end
@end

0 comments on commit 179b62f

Please sign in to comment.