• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
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.1k 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 Nov 15, 2017, 8:31 PM

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

    B 1 Reply Last reply Nov 16, 2017, 8:56 AM Reply Quote 0
    • B Offline
      broberg Project Sponsor @yours.mukul
      last edited by Nov 16, 2017, 8:56 AM

      @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
      • C Offline
        cowboysdude Module Developer
        last edited by cowboysdude Nov 16, 2017, 12:55 PM Nov 16, 2017, 12:43 PM

        @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 Nov 16, 2017, 2:24 PM

          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.

          B 1 Reply Last reply Nov 16, 2017, 3:57 PM Reply Quote 0
          • ? Offline
            A Former User
            last edited by Nov 16, 2017, 3:44 PM

            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.

            C 1 Reply Last reply Nov 16, 2017, 9:56 PM Reply Quote 1
            • B Offline
              broberg Project Sponsor @yours.mukul
              last edited by Nov 16, 2017, 3:57 PM

              @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
              • C Offline
                cowboysdude Module Developer @Guest
                last edited by Nov 16, 2017, 9:56 PM

                @Sean can’t wait…

                1 Reply Last reply Reply Quote 0
                • 1 / 1
                1 / 1
                • First post
                  3/7
                  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