If you are having trouble with mouse in photoshop. Like right click not working… paint brush not working properly etc. problem may have caused by a service of keyborad sharing software “synergy”. Photoshop will work fine after you stop/unistall synergy.
(This is a case study: This problem happened to me once and solved by uninstalling synergy. )