How do I Tell if a HTML button is being pressed?

Get help using Construct 2

Post » Thu Apr 24, 2014 3:08 pm

Hi there,

There is an event to trap the "clicking" of a HTML button object, however, I'm wondering if there is a way to trap if the button is being "pressed/touched"?

I tried using the "touch" object with the button object, however, it seems that when a user clicks on the button, focus is gained and the "is Touching" event isn't registered.

Ideally I'd be able to overload the button to trap both clicking (press and release) as well as pressing (press no release)

Is this possible?

Thanks,
-Remy
B
74
S
14
G
1
Posts: 152
Reputation: 5,051

Post » Fri Apr 25, 2014 12:42 am

edit the source code of your exported game. or create a js plugin. c2 does not support this, I think.
B
13
S
4
G
1
Posts: 107
Reputation: 1,337

Post » Fri Apr 25, 2014 5:06 am

@DAG, thanks for your input
@anyone else, I'd also accept any other answers you have :)
B
74
S
14
G
1
Posts: 152
Reputation: 5,051


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 6 guests