Why a Ballpoint Pen Can't Click a Mac Trackpad: Inside Force Touch Haptics
The article explains how Mac's Force Touch trackpad uses capacitive sensing to detect fingers, a linear actuator for haptic clicks, and horizontal vibrations to simulate depression, revealing why non-conductive pens fail and demonstrating programmatic control via private frameworks.
The author discovers that a ballpoint pen cannot click a MacBook trackpad, while a finger produces a distinct "click" sound and tactile depression. Testing on any 2015-or-later MacBook confirms the trackpad physically does not move when pressed with a pen, even when the laptop is powered off.
The trackpad surface is a 0.5 mm frosted strengthened glass layer, painted to match the aluminum chassis because metal would block capacitive signals. Since 2015, Apple's Force Touch design removed the traditional spring and hinge, instead supporting the glass on four thin metal cantilevers at the corners, leaving zero vertical travel space.
The "click" sound and feeling of depression are entirely simulated by the machine.
Investigation reveals the sound originates from a linear electromagnetic motor directly beneath the trackpad, called the Taptic Engine. With the system muted and headphones plugged in, the click still emanates from the trackpad itself, confirming a mechanical actuator rather than a speaker playback.
Four strain-gauge pressure sensors at the corners measure applied force. However, a pen press exerts pressure yet triggers no response. The reason: a firmware gate requires the glass-surface capacitive sensor to detect human skin first. Only after capacitive confirmation do the strain gauges activate. A plastic pen barrel is non-conductive, so it never passes the capacitive check regardless of force.
The author verifies this by resting a pinky finger on the trackpad edge (activating the capacitive sensor) while pressing with the pen — the click works instantly. Conductive objects like a sausage or peeled orange segment also work without finger contact.
How the Haptic Illusion Works
Although the glass panel is rigid, pressing with a finger creates a convincing sensation of ~1 mm depression. The Taptic Engine cannot move vertically due to space constraints, so it oscillates horizontally. At the moment pressure exceeds the threshold, the electromagnetic coil drives a metal mass laterally to strike the chassis.
This lateral impact does two things:
First , it vibrates the glass panel, emitting a short acoustic pulse — the audible "click".
Second , the glass surface laterally shears against the fingertip for a few milliseconds.
The fingertip's Pacinian corpuscles detect high-frequency vibration but cannot distinguish vertical from horizontal skin deformation. Combined with downward finger force and the audible click, the brain concludes the button has been pressed downward.
Programmatic Control via Private Framework
Curious whether the actuator can be triggered without touch, the author explores Apple's public NSHapticFeedbackManager in AppKit, but it only fires when a finger is actively sliding on the trackpad.
Digging into /System/Library/PrivateFrameworks, the private MultitouchSupport.framework exports two C functions: _MTDeviceGetMTActuator and _MTActuatorActuate. Using Python's ctypes, the author loads the framework, obtains the default trackpad's actuator handle, and sends action code 6 (press) followed by 3 (release) with a 60 ms delay, looped five times.
python3 - << 'EOF'
import ctypes, time
mt = ctypes.CDLL(
'/System/Library/PrivateFrameworks/MultitouchSupport.framework/MultitouchSupport')
cf = ctypes.CDLL(
'/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation')
mt.MTDeviceCreateList.restype = ctypes.c_void_p
cf.CFArrayGetValueAtIndex.restype = ctypes.c_void_p
mt.MTDeviceGetMTActuator.restype = ctypes.c_void_p
dev = ctypes.c_void_p(cf.CFArrayGetValueAtIndex(ctypes.c_void_p(mt.MTDeviceCreateList()), 0))
act = ctypes.c_void_p(mt.MTDeviceGetMTActuator(dev))
mt.MTActuatorOpen(act)
for _ in range(5):
mt.MTActuatorActuate(act, 6, 0, ctypes.c_float(0), ctypes.c_float(0))
time.sleep(0.06)
mt.MTActuatorActuate(act, 3, 0, ctypes.c_float(0), ctypes.c_float(0))
time.sleep(0.4)
mt.MTActuatorClose(act)
EOFWith hands completely off the laptop, the trackpad clicks five times identically to a human press.
Community Project: TrackWeight
Searching the framework name leads to Kris Shah's open-source TrackWeight project, which reads raw data from the four strain gauges via the same private library, turning a MacBook into a gram-precision scale. The same capacitive gating applies: a finger must rest on the trackpad edge while weighing items like apples or coffee beans.
Signed-in readers can open the original source through BestHub's protected redirect.
This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactand we will review it promptly.
How this landed with the community
Was this worth your time?
0 Comments
Thoughtful readers leave field notes, pushback, and hard-won operational detail here.
