It partly depends on which phone and software you've got.
My previous phone, that is more than...7 years old, had bluetooth and a remote option.
I could (actually still can) use it as a mouse on my desktop, using the joystick that was on it.
My father had a similar phone and we had quite some fun with

as we both could use it.
maybe after a little search you could use it as well. You'd need bluetooth on your pc though.
But I highly doubt you don't have it on your mobile already (bluetooth) and that there isn't some software on the web.
---
Lol, just tested and it works in win7

.