Of course you can do that.I haven't tested it myself but you can try this application found here:
http://dev.int64.org/amouse.html
This link might be helpful- i'm planning to use gamepad also because using a mouse affects wrists seriously.
http://archiveserver.twoplustwo.com/...te_id/1#import