0 Favourites

Mouse Input Confused when Touch implemented in code

  • Problem Description

    Mouse input is confused when Touch input is implemented in code.

    For example: Left click on object is ignored when Touch events are implemented in the Event Sheet as well. Actually it is swapped around. So if an event says "left click on object = do this" the event will be ignored by left click but will fire when right clicked.

    Note: this only happens if the event sheet has code for Touch input as well.

    This is happening from R168 onward.

    Attach a Capx

    [attachment=0:2dsid7uj][/attachment:2dsid7uj]

    Description of Capx

    The example capx creates\destroys a 9Patch window in the centre of the screen when:

      The space bar is pressed The cog is clicked with the left mouse button The cog is touched

    Steps to Reproduce Bug

      1 Run the preview 2 Left click on the cog - Observe how the popup window displays or disappears - as expected 3 Now stop the preview 4 In the Event sheet - Please enable the Touch group 5 Run the preview again 6 Left click the cog - it does nothing 7 Right click the cog - Observe how the popup window displays or disappears

    Observed Result

    As long as the Touch group is not enabled the mouse input works as expected. But when the touch group is enabled mouse input is confused.

    Expected Result

    Mouse input to work as expected whether touch input is enabled or not

    Affected Browsers

    • Chrome: (YES)
    • FireFox: (Don't Know)
    • Internet Explorer: (YES)

    Operating System and Service Pack

    Windows 8.1

    Construct 2 Version ID

    R168

    R169

    R170

  • Construct 3

    Buy Construct 3

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

    Buy Now Construct 3 users don't see these ads
  • Closing as not a bug. When you enable mouse input for the Touch object, both triggers fire for clicking the object and touching the object, which shows then immediately hides the popup again. Either have no mouse events and just rely on the Touch object's 'use mouse input', or have separate events and turn off the Touch object's 'use mouse input'.

  • Thanks for the reply Ashley.

    Now that you mention 'Touch object's use mouse input' I know I need more coffee. Can't believe I didn't remember that....

    Sorry for taking your time, and thanks for awesome software......

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