Older mouses where not optical, but it's almost impossible to find those these days. If your mouse is less than 12 years old, then, IT'S optical.
It must be noted that the range of a wireless mouse is short, and that any intervening obstacles, such as a wall, will very probably make any connection impossible.
It's always better to have the computer located in the room where it's been used. It's possible to have a computer in another room, but usually not practical.
Electro
May 2017