Skip to content
This repository has been archived by the owner on Feb 13, 2019. It is now read-only.
/ pointerkit Public archive

A proof of concept framework to use a pointing device on iOS

Notifications You must be signed in to change notification settings

louisdh/pointerkit

Repository files navigation

PointerKit

PanelKit for iOS
A Magic Mouse connected to an iPad running Pixure with PanelKit.
(High res video)

About

PointerKit is a proof of concept framework to use a pointing device on iOS. This is done via a multipeer connection between a Mac and an iOS device. The pointer movement is captured by the Mac app, after which it's send to the receiving iOS device (over Bluetooth or Wi-Fi).

This project uses PTFakeTouch for faking touches.

Implementing

If you're an app developer, you can add mouse support by compiling and including the PointerKit framework (from RemotePointer.xcworkspace) and adding a couple lines of code to your project:

var manager: PointerManager!

override func viewDidAppear(_ animated: Bool) {
    super.viewDidAppear(animated)
	
    manager = PointerManager(with: self, in: UIApplication.shared.keyWindow!)

    manager.showConnector()
}

About

A proof of concept framework to use a pointing device on iOS

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published