You could try creating a tablet event from code and execute it. I know it’s possible for normal pen “clicks” however I don’t think you can hook onto an already existing click event that happened on the canvas (could be worth investigating tough).
Maybe as a workaround you could alter the brush preset instead since there is a Time sensor for Brushes on the Size parameter.
(did this with a mouse)
