How does blender manage pressure sensitivity?

I’m kind of lost with how blender works on a high level, so I thought I’d try to understand things piece by piece. Unfortunately, I’m having trouble even finding how blender handles input.

Apologies if this is in the wrong section, I’m not sure where to ask a more general question like this,

Thanks in advance.