Mouse and Touch events

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!
  • Hi,

    I will need to use both mouse and touch for the inputs in my project. For the mouse, I have done the events as per needed.

    For example, I cannot click on the buttons in the tablet before I added in the touch events. But upon adding the touch events, the problem is settled.

    However, another problem occur which forced me to remove the recently added touch events, thus removing the problem.

    My questions are:

    For the touch events, is it necessary for the touch events to be included in the event sheet?

    Or it are the mouse events automatically converted to touch events when tested out on tablets?

  • Mouse events are not automatically converted, unless the tablet has mouse emulation enabled (but don't bank on that).

    Otherwise, if you don't need right-clicks, you can set your touch object to simulate mouse clicks. It's on by default, I believe, but can be set in the properties pane under "Use mouse input".

  • Hi!

    Thank you for your reply.

    Do you mean that I can delete all my mouse events and just replace them with touch events and it will work perfectly?

    How about if I need to test the project on the laptop? I will need the mouse events, right..?

  • by the way, I have already the mouse input for the touch event in the properties pane.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Do you mean that I can delete all my mouse events and just replace them with touch events and it will work perfectly?

    Yup. You won't have access to mouse wheel or right-click, but if you don't need them, then it'll work perfectly.

    How about if I need to test the project on the laptop? I will need the mouse events, right..?

    Nope.

  • Hi!

    Thank you so much for your help!

    My project works well on both laptop and tablet now. :D

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