/tapkit-ios-sdk:tapkit-motionfrom tapkit-ios-sdk
Processes TAP hand motion data (velocity deltas, roll/pitch/yaw) for air mouse cursor control, tilt, rotation, and AssistiveTouch. Useful for pointer-based interactions and orientation tracking.
Ships in tapkit-ios-sdk. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Start from tapkit-getting-started. Motion and taps can be on together.
TAPKit.sharedKit.setTAPInputMode(.controller(), forIdentifiers: nil)
TAPKit.sharedKit.setTAPXRState(.airMouse(), forIdentifiers: nil) // TapXR and TapBand
If TAPXRState is not set, turn the stream on:
TAPKit.sharedKit.setFeature(.imuMotionData, enabled: true, forIdentifiers: [identifier])
Turn it off with setFeature(.imuMotionData, enabled: false, ...) when the screen does not need motion, to save battery. A later setTAPInputMode(.controller()) turns it back on.
TAPInputMode.controllerWithMouseHID() also drives the iOS AssistiveTouch cursor (iOS 13+, Accessibility settings). The app still receives moused.
func moused(identifier: String, velocityX: Int16, velocityY: Int16, isMouse: Bool) {
guard isMouse else { return } // false is an idle / zero packet
cursor.x += CGFloat(velocityX) * gain
cursor.y += CGFloat(velocityY) * gain
}
velocityX and velocityY are signed deltas since the last packet. Scale them in the app.isMouse == false means "not a pointer move". Skip it or you will fight idle packets.func tapDidChangeOrientation(roll: Int, pitch: Int, yaw: Int) {
// degrees
}
This callback does not include a device identifier. With two Taps connected, the app cannot tell which hand moved. Track one device, or keep the last moused identifier only as a hint (it is not guaranteed to match).
roll, pitch, yaw are signed degrees.DragIndex grab, see tapkit-knob) and use the delta. Roll wraps at ±180.tapkit-raw-sensors) when you need orientation from a Tap Strap.Clamp a cursor inside the view bounds. Add a dead zone so a still hand does not drift: ignore the sample when abs(velocityX) + abs(velocityY) < 2.
Smooth a noisy angle with an exponential average:
smooth = alpha * value + (1 - alpha) * smooth // alpha around 0.3
System cursor: controllerWithMouseHID() plus AssistiveTouch. The app does not draw that cursor.
If a direction is mirrored on the user's device, flip the sign and ask them to try again.
moused and tapDidChangeOrientation: README.md in the SDK repositorytapkit-knob, tapkit-dpadWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
air-mouse, cursor-control, hand-motion, orientation, assistive-touch
8 skills in this plugin
/tapkit-air-gesturesHandle TAPXRAirGesture (processed click, drag, drop, fist, swipe) on TapXR and TapBand, document raw firmware class indexes, switch tapping vs air-gesture models, and handle Tap Strap TAPAirGesture. Use for air gestures, pinch, swipe, fist, TAPXRState, or raw detections./tapkit-build-an-appBuild a complete iOS app or interactive experience controlled by a TAP device. Use when the user asks to build, make, or create something with their Tap, including games, presentations, media control, or creative tools./tapkit-dpadBuild a D-Pad style controller on TapXR or TapBand. Swipes move, short clicks select, a pinch-hold locks into rotate or drag, and a fist hides. Use for menus, select and move, drag, rotate, or game controls.npx claudepluginhub tapwithus/tap-ios-sdk --plugin tapkit-ios-sdkOther plugins' skills for the same job