Hello again to all,
today my question is: If i generate a game for html, and i want to upload it to my website, is there a possability to use a input which recognizes on which platform i open the game?
Currently ive included both - mouse and touch input. But if there both enabled, the calculation of some input values gets weird. (Input positions arend correct)
Basically i need the game to run on each device.
One Excample:
Iam using Set Location_Global_X to Mouse.X (OnClick) and in my touch function Set Location_Global_X to Touch.X (Is in touch). But both values are different (of course they may not exact the same but the click area should be near by)
This functions arent enabled at the same time, to make sure they doesnt interrupt each other.
Is there a possibility to have an input which works for both input systems? The coordinates should be the same on desktop and on mobile devices. (I need this for my minimap to main map transition which works on desktop but not on my mobile device.
I hope there is a solution for this kind of "problem"
best regards and thanks in advance