Spen is bound to absolute/relative mouse option. Switch to absolute if you want touch like functionality. However not all games can work this way. There are technical reasons why it is not possible for all games.
Maybe this is worth to read
Advanced settings
MagicDosbox (C) 2014 – 2024