You can use Magic Mouse anywhere within range of your computer. When you need to charge the mouse or if you need to connect it again, connect it to your iMac using the included USB-C to Lightning Cable or Lightning to USB Cable.
Here are some common gestures you can use with your Magic Mouse.
Gesture
Action
Secondary click (that is, right-click): Press the left or right side of the mouse to perform a “secondary click.” (To enable right- and left-click, in
Two-finger swipe: Swipe left or right to move through pages, photos, and more.
Customize your mouse. To set preferences such as tracking and scrolling speed, and to enable or customize gestures, click Mouse in System Preferences.