oral herpes typically is caused by direct contact like kissing or by fresh exposure to the herpes virus as a fomite (contaminated surfaces). technically if the person using the mouse has an active herpetic lesion on the lip picks at it and then touches the mouse it will be contaminated. if you then touch the mouse and touch your lip and are susceptible to herpes you may get it. these are all big "if's" and theoretical. most people have have oral herpes have no clue where they got it or from whom. genital herpes comes from sexual contact orally or during intercourse. less-commonly it could come from shared (contaminated) sex toys but this is not the typical transmission route. you can use your own wireless mouse or at least wipe it off before using it. of course the keyboard desk a pen etc. is going to be a possible fomite as well.
can i get herpes from using the same computer mouse as some one infected with the virus? . what other ways can you get the virus besides kissing or sex