Skip to main content
Removed thanks as per SE policy
Source Link
Greenonline
  • 3.2k
  • 7
  • 37
  • 49

I would like to detect how long the state on/off is going on for. Is there a way to do that? I would like to do that for two reasons:

  1. I would be able to make a very simple toggle button. (I know about the other way with the old value and new value).
  2. I can make the button being pressed for a long time be like a return button.

Anyways, I've been rambling. Anyone got any ideas?

Thanks, Jack

I would like to detect how long the state on/off is going on for. Is there a way to do that? I would like to do that for two reasons:

  1. I would be able to make a very simple toggle button. (I know about the other way with the old value and new value).
  2. I can make the button being pressed for a long time be like a return button.

Anyways, I've been rambling. Anyone got any ideas?

Thanks, Jack

I would like to detect how long the state on/off is going on for. Is there a way to do that? I would like to do that for two reasons:

  1. I would be able to make a very simple toggle button. (I know about the other way with the old value and new value).
  2. I can make the button being pressed for a long time be like a return button.

Anyone got any ideas?

Source Link
Jack
  • 113
  • 1
  • 5

Detect how long a push button is being pressed?

I would like to detect how long the state on/off is going on for. Is there a way to do that? I would like to do that for two reasons:

  1. I would be able to make a very simple toggle button. (I know about the other way with the old value and new value).
  2. I can make the button being pressed for a long time be like a return button.

Anyways, I've been rambling. Anyone got any ideas?

Thanks, Jack