Skip to main content
Known Participant
July 10, 2020
Question

Button click in game not working with Mac laptop trackpad

  • July 10, 2020
  • 1 reply
  • 353 views

Hi

 

I have a simple Animate game with buttons needing to be pressed. When the game is played with a Mac laptop trackpad, "tapping" doesn't elicit the buttons to be pressed; this only happens with a hard pressing down until you can audibly hear the mechanical click of the trackpad, which doesn't come naturally to users. Game works fine with a mouse.

 

See attached video, I am alternating between a tap and a click.

 

Has anyone else had this problem?

 

Cheers

    This topic has been closed for replies.

    1 reply

    kglad
    Community Expert
    Community Expert
    July 11, 2020

    use a mousedown event.

    incubo1Author
    Known Participant
    July 13, 2020

    Thanks for the reply. It has revealed to me that the problem wasn't the click itself, but the fact that the animation for the button clicking doesn't always show, while the code does actually register the click. Looks like I'd better code the animation rather than place it on the Down state of the button.

    kglad
    Community Expert
    Community Expert
    July 13, 2020

    you're welcome.