KorGE

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Popular
    • Users
    • Groups

    How do we handle long press?

    General
    1
    2
    106
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • I
      IMBurnin last edited by

      I don't see any methods on Button to hand long press

      1 Reply Last reply Reply Quote 0
      • I
        IMBurnin last edited by

        ended up doing this.:

        var down = false
        onDown {
                        down = true
                        GlobalScope.launch {
                            delay(500)
                            if (down) {
                                // do the thing
                            }
                        }
                    }
                    onUp {
                        down = false
                    }
        
        1 Reply Last reply Reply Quote 1
        • First post
          Last post