Most likely it is capacitive and doesn’t actually move and they are using the haptics engine to make it feel like a button. It works surprisingly well on the iPhone SE with Touch ID. You can’t even really tell that it’s not actually moving when you press it.