Typical accelerometers are made up of multiple axes, two to determine most two-dimensional movement with the option of a third for 3D positioning. Most smartphones typically make use of three-axis models.
Photo “ADXL3XX” by Windell Oskay is licensed under CC BY 2.0