Default Tasker to toggle virtual mouse?

Basically what title says. Is there anyway to use tasker to toggle the virtual mouse setting? In some games the right analog stick is used to control viewing but yet it still shows the mouse pointer (Modern Combat 4 does this). I looked in Tasker and Secure Settings and neither had anything.
Phone: OnePlus One
ROM: Official CM nightlies
Kernel: Sensei Kernel

Want to play League of Legends?
Click here!