Input for desktop and mobile devices

0 favourites
  • 6 posts
From the Asset Store
Total customisation of the input! You can combine inputs from all peripherals. Make your game accessible for everyone!
  • 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

  • [quote:mhclh2b2]Touch properties

    Use mouse input

    If set to Yes, mouse clicks will simulate touch events. Clicking and dragging the left mouse button will simulate a touch along where mouse dragged, and single clicks will simulate taps. This can be very useful for testing touch events work properly on a desktop computer with no touch input supported. However, only single-touch input can be simulated with a mouse, and a mouse is much more precise than a touch, so it is still best to test on a real touchscreen device.

    Could this maybe work for you .

  • granpa Thanks for your answer! Could you tell me where i can find this option? Or where i have to set it up? If the mouse and the touch input will be triggered as the same, this would be the greatest solution for me - not only for testing as for the final input method.

    Thank your very much!

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • click on touch ,check it in properties

  • Thanks granpa! Can i use this option for realease too? Or is this options intention only for debugging?

  • I have and had no problems .

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)