• 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.

MMM-Touch

Scheduled Pinned Locked Moved System
36 Posts 7 Posters 16.1k Views 10 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.
  • ? Offline
    A Former User
    last edited by A Former User Feb 12, 2020, 3:48 PM Feb 12, 2020, 3:46 PM

    MMM-Touch

    MagicMirror module for universal touch gesture commander using touchscreen

    Screenshot

    Features

    • Multi-fingers supported. (If your touchpanel or touchframe would support.)
    • Available gestures : TAP, PRESS, SWIPE_UP/DOWN/LEFT/RIGHT, MOVE_UP/DOWN/LEFT/RIGHT, ROTATE_CW/CCW, PINCH_IN/OUT.
      • Example : TAP_1(tapping with 1 finger), SWIPE_LEFT_2(swiping left with 2 fingers), PINCH_IN_3(pinching-in with 3 fingers)
      • For ROTATE_CW and ROTATE_CCW, only 2 fingers are recognizable. (sorry, I’m not good at math.)
    • Available commands :
      • Emitting custom notification
      • Executing shell script/command directly
      • Executing method of module(s)
      • Usual JavaScript codes
    • Different gestures and commands with mode by condition.
    • Dynamic configuration : Other module easily add gestureCommand for itself by notification

    [card:eouia/MMM-Touch]

    U 1 Reply Last reply Mar 23, 2020, 7:43 PM Reply Quote 2
    • D Offline
      dvbit
      last edited by Feb 15, 2020, 11:06 AM

      Aha interesting Sean
      Will be trying it with https://github.com/dvbit/Kinect-Mouse-Swipe-C-Module

      1 Reply Last reply Reply Quote 0
      • D Offline
        dvbit
        last edited by Feb 15, 2020, 11:06 AM

        I need to upgrade the c code to at least catch two hands :-)

        ? 1 Reply Last reply Feb 15, 2020, 3:27 PM Reply Quote 0
        • ? Offline
          A Former User @dvbit
          last edited by Feb 15, 2020, 3:27 PM

          @dvbit intersting trial. this module can capture only one touch point also. I think u might need to emit “touch” events instead of “mouse” events.( but common onclick and onrelease event will be compatible)

          D 1 Reply Last reply Feb 16, 2020, 10:23 AM Reply Quote 0
          • D Offline
            dvbit @Guest
            last edited by Feb 16, 2020, 10:23 AM

            @Sean Uhm .If I understand your touch plugin intercepts “tap” events in the OS.
            If that is the case I have to find a way to simulate those in my C program.
            Currently the program uses the X11 simulation functions to emit fake clicks and movement events
            Is this the case?
            It is really a pity that all kinect libraries of projects such as openni are really old as it is hard to find documentation. harder updated documentation.
            Ideally the kinect would have a “Tuio” driver for X server so mecoming for all intent and purposes a multi touch device.
            I have tried to revive that too before this was developed.
            I will give it a new try.

            https://code.google.com/archive/p/tuiokinect/

            ? 1 Reply Last reply Feb 16, 2020, 11:06 AM Reply Quote 0
            • ? Offline
              A Former User @dvbit
              last edited by Feb 16, 2020, 11:06 AM

              @dvbit
              i used default touch events of browser.(IE and Safari doesn’t support but we are commonly use electron-chromium)
              https://developer.mozilla.org/en-US/docs/Web/API/Touch_events

              I don’t know anything about kinnect library, so i don’t know whether your code can emit specific event. anyway if possible, it can be used together.

              D 1 Reply Last reply Feb 16, 2020, 11:47 AM Reply Quote 0
              • D Offline
                dvbit @Guest
                last edited by Feb 16, 2020, 11:47 AM

                @Sean Ok. I think that then if it intercepts browser touch events it will be really possible.

                Right now I am trying to compile tuiokinect :-)
                That would add full multitouch air gestures… so would be really fantastic with your plugin ;-)

                1 Reply Last reply Reply Quote 0
                • U Offline
                  undeterred @Guest
                  last edited by Mar 23, 2020, 7:43 PM

                  @Sean Hi, I’d like to get this module working with a HyperPixel4 touchscreen. Unfortunately I obtain an error when changing modes that stops the module from working. Is this the correct place to post to obtain help?
                  Also, I have a degree in applied maths. Perhaps I can help with the rotation maths?
                  Many thanks.

                  ? 1 Reply Last reply Mar 23, 2020, 7:45 PM Reply Quote 0
                  • ? Offline
                    A Former User @undeterred
                    last edited by Mar 23, 2020, 7:45 PM

                    @undeterred
                    What kind of error did you meet? Post a issue on github repository with more detailed information. I’ll inspect.

                    M 1 Reply Last reply Oct 9, 2020, 6:04 PM Reply Quote 0
                    • M Offline
                      MrCoffee @Guest
                      last edited by Oct 9, 2020, 6:04 PM

                      @Sean Thank you for sharing this great module.
                      I am not very good at programming, but playing around a little helped me understand.
                      However I am wondering if it is possible to create more buttons?
                      Is there a way to modify the code (if necessary just quick and dirty) or do you think I can run multiple instances at the same time?

                      And one more question: is it possible to change the displayed name to an icon?

                      Thanks a lot.
                      Mr.Coffee

                      M 1 Reply Last reply Oct 10, 2020, 3:47 PM Reply Quote 0
                      • 1
                      • 2
                      • 3
                      • 4
                      • 1 / 4
                      • 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