tap-tapping
/tap-tapping
Decode Tap tapcodes (which fingers tapped), map finger combinations to app actions or keyboard shortcuts, and give haptic feedback. Use for tapping, finger combos, chords, tap-to-action, shortcuts, input modes, or the TAPPING vision model.
- Author
- tapwithus ↗
- Repository
- tap-python-sdk ↗
- Licence
- MIT
- Last repository change
- 20.10.2026
Assessment and security
- Files in this package
- 1
- Scripts
- 0
- HTML comments
- 0
- URLs in SKILL.md
- 3
No signals detected. Repository changed on 20.10.2026, without references to retired models or APIs.
MIT, open: use and modify while retaining author attribution.
What it does and when to use it
Decode Tap tapcodes (which fingers tapped), map finger combinations to app actions or keyboard shortcuts, and give haptic feedback. Use for tapping, finger combos, chords, tap-to-action, shortcuts, input modes, or the TAPPING vision model.
Original author description
Decode Tap tapcodes (which fingers tapped), map finger combinations to app actions or keyboard shortcuts, and give haptic feedback. Use for tapping, finger combos, chords, tap-to-action, shortcuts, input modes, or the TAPPING vision model.
How it works
- Tapcode bitmask
- Turn on tap events
- Double taps and multi-taps
- Map taps to keyboard shortcuts
- Haptic feedback
- Docs
SKILL.md preview
---
name: tap-tapping
description: Decode Tap tapcodes (which fingers tapped), map finger combinations to app actions or keyboard shortcuts, and give haptic feedback. Use for tapping, finger combos, chords, tap-to-action, shortcuts, input modes, or the TAPPING vision model.
---
# Tapping
Works on every Tap. Start from the `tap-getting-started` skill for connection.
## Tapcode bitmask
A tapcode is an int 1-31. Each bit is one finger:
| Bit | Value | Finger |
|-----|-------|--------|
| 0 | 1 | thumb |
| 1 | 2 | index |
| 2 | 4 | middle |
| 3 | 8 | ring |
| 4 | 16 | pinky |
Examples: `1` thumb, `2` index, `3` thumb+index, `6` index+middle, `31` all five.
```python
FINGERS = ["thumb", "index", "middle", "ring", "pinky"]
def first(value): # int or [int]
return value[0] if isinstance(value, (list, tuple)) else value
def fingers(tapcode):
return [name for bit, name in enumerate(FINGERS) if tapcode & (1 << bit)]
ACTIONS = {
2: "next", # index
4: "previous", # middle
6: "select", # index + middle
31: "quit", # all fingers
}
def on_tap(identifier, tapcode):
action = ACTIONS.get(first(tapcode))
if action:
handle(action)
```
Single-finger taps are the most reliable. Prefer them for frequent actions. Use 2-finger combos next. Use 3+ finger combos only for rare actions.
## Turn on tap events
After `await sdk.start()`:
- If `hasattr(sdk, "set_input_mode")`: `await sdk.set_input_mode(InputModeController())`.
- `InputModeText()` (default): the Tap types letters on the OS keyboard. The SDK gets no taps.
- `InputModeController()`: the SDK gets tap, mouse, and air-gesture events. No typing.
- `InputModeControllerText()`: both at the same time.
- The SDK re-sends the mode every 10 s, so the device stays in it.
- Otherwise: `set_feature(DeviceFeatures.MODEL_DETECTION, True)`, `set_vision_sensor_model(ModelTypes.TAPPING)`, `set_vision_sensor_op_mode(VisionSensorOpModes.TRIGGER)`.
## Double taps and multi-taps
The SDK reports every tap. Detect double taps yourself with a time window:
```python
import time
last = {"code": None, "t": 0.0}
def on_tap(identifier, tapcode):
code, now = first(tapcode), time.monotonic()
if code == last["code"] and now - last["t"] < 0.35:
handle_double(code)
last["code"] = None
return
last.update(code=code, t=now)
handle_single(code)
```
If single and double must not both fire, delay the single action until the window ends (schedule it with `loop.call_later(0.35, ...)` and cancel it on the second tap).
## Map taps to keyboard shortcuts
The SDK does not send OS key presses. Add a library in the user's app, for example `pip install pynput`:
```python
from pynput.keyboard import Controller, Key
kb = Controller()
SHORTCUTS = {2: Key.right, 4: Key.left, 6: Key.space}
def on_tap(identifier, tapcode):
key = SHORTCUTS.get(first(tapcode))
if key:
kb.press(key); kb.release(key)
```
macOS: the terminal / IDE needs Accessibility permission to send keys.
## Haptic feedback
```python
await sdk.send_vibration_sequence([80]) # short buzz
await sdk.send_vibration_sequence([100, 100, 100]) # double buzz
```
Values are on/off durations in ms (10-2550, max 18 values). From a sync callback, schedule it: `asyncio.get_running_loop().create_task(sdk.send_vibration_sequence([80]))`.
## Docs
- TapSDK events: https://tapwithus.github.io/tap-python-sdk/latest/v1/reference/events/
- Input modes: https://tapwithus.github.io/tap-python-sdk/latest/v1/how-to/switch-input-modes/
- TapSDK2 events: https://tapwithus.github.io/tap-python-sdk/latest/v2/reference/events/
Versions
The database has no other skills named tap-tapping.
Database snapshot: 13.11.2026 · package version bc202cc734d6 (SHA-256 digest of the entire package)
Downloads in the last 30 days: 0 · ranking
Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.
Similar skills
- 100tap-android-tapping
Decode Tap tapcodes on Android (which fingers tapped), map finger combinations to app actions, and give haptic feedback. Use for tapping, finger combos, chords, tap-to-action, classic input modes, or the framed TAPPING model. Start from tap-android-getting-started:… - 100tapkit-tapping
Decode TAP finger combinations, map them to in-app actions, detect double taps, and give haptic feedback with vibrate(durations:). Use for tapping, finger combos, chords, in-app shortcuts, multitap, or TAPInputMode. - 100tap-vision-models
Switch the TapXR / TapBand vision model between TAPPING and AIR_GESTURE, set the op mode, and decode UnifiedAirGestures (swipes, pinches, holds, fist). Use for air gestures, pinch, swipe, fist, model switching, or AirGestures on Tap Strap. - 100tap-build-an-app
Build a complete app or interactive experience controlled by a Tap - games, browser pages, presentations, media control, keyboard shortcuts, or creative tools. Use when the user asks to "build", "make", or "create" something with their Tap, especially if they are not a developer. - 95tap-android-vision-models
Switch a Tap vision model on Android between TAPPING and AIR_GESTURE, decode raw UnifiedAirGesture (swipes, pinches, holds, fist), and handle processed XRAirGesture (click, drag, drop, fist, swipe). Use for air gestures, pinch, swipe, fist, model switching, or classic… - 100tapkit-ios-sdk
Integrate and use TAPKit, the TAP iOS SDK, to receive input from TAP Bluetooth devices (Tap Strap, TapXR, TapBand): finger-tap combinations, air-mouse movement, air gestures, raw sensor streams, haptics, and TapXR / TapBand device configuration. Use when writing…