Similar to Hall effect switches, the inductive 'switches' (should we call them switches anymore, without clicky mechanical parts?) use magnetism to measure how far down the button has been pressed.
It makes sense, too, even considering similar analogue technologies. Just a few years ago, Hall effect keyboards and controller joysticks were quite rare and usually quite expensive. Now, you have ...