MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.

    Touchscreen Modules

    Scheduled Pinned Locked Moved General Discussion
    7 Posts 4 Posters 3.6k Views 2 Watching
    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.
    • Y Offline
      yours.mukul
      last edited by

      How to make a module for touchscreen??
      I will be using a touchscreen lcd display, and I wish to make touch interactive modules,

      brobergB 1 Reply Last reply Reply Quote 0
      • brobergB Offline
        broberg Project Sponsor @yours.mukul
        last edited by

        @yours.mukul look at the ones already made.

        But basically you add an onclick event on text/graphics/divs to make them react to a touch (same thing as a click with the mouse, as the input is the same)

        1 Reply Last reply Reply Quote 0
        • cowboysdudeC Offline
          cowboysdude Module Developer
          last edited by cowboysdude

          @yours.mukul look inside the touch news module for an example :)

          1 Reply Last reply Reply Quote 0
          • Y Offline
            yours.mukul
            last edited by

            I couldn’t see onclick anywhere in the touch news, can you please explain me how it uses touch??
            P.S. I’m sorry if I sound too stupid.

            brobergB 1 Reply Last reply Reply Quote 0
            • ? Offline
              A Former User
              last edited by

              Coincidence!
              I’m making one with touch gestures (multiple tapping, multiple touches, multi-finger swiping, multi-finger press holding…)
              It could give an interface with human to modules like my other commander modules(Assistant, TelegramBot)
              I hope I could release a few weeks later.

              cowboysdudeC 1 Reply Last reply Reply Quote 1
              • brobergB Offline
                broberg Project Sponsor @yours.mukul
                last edited by

                @yours.mukul

                title.addEventListener("click", () => showdesc(this)); //Show description on click
                

                so it’s

                elementname.addEventListener(“click”, () => function(data));

                Google javascript onclick and eventlistener for more information

                1 Reply Last reply Reply Quote 1
                • cowboysdudeC Offline
                  cowboysdude Module Developer @Guest
                  last edited by

                  @Sean can’t wait…

                  1 Reply Last reply Reply Quote 0

                  Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                  Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                  With your input, this post could be even better 💗

                  Register Login
                  • 1 / 1
                  • First post
                    Last post
                  Enjoying MagicMirror? Please consider a donation!
                  MagicMirror created by Michael Teeuw.
                  Forum managed by Sam, technical setup by Karsten.
                  This forum is using NodeBB as its core | Contributors
                  Contact | Privacy Policy