A basic computer mouse contains a casing, buttons, a scroll wheel, and sensors.Motion Detection: The mouse senses movement using optical or laser sensors that detect movement along the surface.Electrical signals are transmitted to the computer, and a microprocessor translates them into movement of the cursor on the screen.Additional features in modern mice include customizable buttons, ergonomic design, and trackpads with gesture recognition.