nutrientPointerInput

fun Modifier.nutrientPointerInput(enabled: Boolean = true, onSecondaryClick: () -> Unit = {}, onTap: (PointerType) -> Unit): Modifier

Stylus-aware pointer input as a single primitive (STYLUS-1 / P1-8): one implementation, used everywhere a toolbar element handles taps.

It surfaces the PointerType of each tap (so callers can treat stylus vs touch vs mouse differently) and routes secondary-button presses (mouse right-click, stylus barrel button) to onSecondaryClick. Standard tap handling is the fallback for plain touch.

Note: full palm-rejection thresholds depend on the raw touch-major size from MotionEvent, which Compose's PointerInputChange doesn't expose; that part is wired during the S Pen device pass (the Phase 0 device test). The type/secondary-button handling is complete here.