did you mean is there some way of writing into the keyboard/mouse buffer to SIMULATE inputs that could be used to control applications OTHER than pd? as far as I know this is not possible so far (but I may be very wrong); simulating mouse input makes no sense though, as it is unclear what it would do with any real mouse input.
if you just want to be able to use these inputs (mouse and keyboard) to control pd patches then that is straightforward and Hans has already listed a few such objects.
Matt
-=-=-=-=-=-=-=-=-=-=-=-=- http://www.loopit.org/ -=-=-=-=-=-=-=-=-=-=-=-=-