Hi, sorry for the late reply. In SCUMM, it works as a right click if you click the button on the hover mode. On other apps like xodo docs and office, the alternative function works if you use the tip of the pen while pressing the button on the pen. For dosbox, i think right click in the hover mode would work just fine for us.
Thank you for your quick response! I also want to mention that ScummVM also supports right click emulation on s-pen, and as far as I know they are similar emulators with dosbox and open-source, so taking a look at them might help you too. Thank you so much for your work!
I also thought of this but forgot to write, it would be great.