Supporting touch input on windows

  • #1, by derjohnWednesday, 16. October 2024, 10:46 A year ago
    Hello,

    I am looking for a way to support the users touch input on windows devices. Currently when I touch the screen only the curser position gets updated but no 'click' gets registered.
    Since I am pretty new to Visoinaire Studio I may miss the obvious way to do it so I would appreciate some hints. 

    My idea was to write a script that registers an event handler for the mouseEvent. If the mouseEvents value is eEvtTouchDown (16) I would like to trigger a new mouseEvent for eEvtMouseLeftButtonDown (3).  (https://wiki.visionaire-tracker.net/wiki/Global_Command:_reg...)
    My problems currently  are
    (a) createEvent seems to be the only way to trigger an event and it is not documented (https://wiki.visionaire-tracker.net/wiki/Global_Command:_cre...)
    (b) To check if eEvtTouchDown is even supported on windows I would like to log the mouseEvent values of my build game on the PC that has the touch screen (not my development PC). How do I do that?

    Newbie

    1 Posts


  • #2, by SimonSTuesday, 22. October 2024, 09:28 A year ago
    The docs about the createEvent are here: https://www.visionaire-studio.com/luadocs/lua.html#createeve...

    Easiest would be to install Visionaire on the other PC but you can also set loglevel to info in the config.ini and print to the messages.log.

    Thread Captain

    1613 Posts