Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Graphics
  4. Gestures, jestures, and swipes - implementation fundamentals

Gestures, jestures, and swipes - implementation fundamentals

Scheduled Pinned Locked Moved Graphics
questionlearning
8 Posts 2 Posters 8 Views 1 Watching
  • 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.
  • C Offline
    C Offline
    charlieg
    wrote on last edited by
    #1

    Someone has inquired if will support gestures such as swipe. I've already written the code to reboot the device if you give it the middle finger ;P Seriously, I'm looking for articles and descriptions of the underlying technology and approach for implementing a page swipe. I can visualize that I'm working with off-screen images and moving in a column at a time, but this would seem quite tedious at the Win32 level (which is where I'm working). Resource suggestions? thanks

    Charlie Gilley You're going to tell me what I want to know, or I'm going to beat you to death in your own house. "Where liberty dwells, there is my country." B. Franklin, 1783 “They who can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety.” BF, 1759

    P 1 Reply Last reply
    0
    • C charlieg

      Someone has inquired if will support gestures such as swipe. I've already written the code to reboot the device if you give it the middle finger ;P Seriously, I'm looking for articles and descriptions of the underlying technology and approach for implementing a page swipe. I can visualize that I'm working with off-screen images and moving in a column at a time, but this would seem quite tedious at the Win32 level (which is where I'm working). Resource suggestions? thanks

      Charlie Gilley You're going to tell me what I want to know, or I'm going to beat you to death in your own house. "Where liberty dwells, there is my country." B. Franklin, 1783 “They who can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety.” BF, 1759

      P Offline
      P Offline
      Pete OHanlon
      wrote on last edited by
      #2

      What type of swipe? Touching the screen? In mid air?

      I was brought up to respect my elders. I don't respect many people nowadays.
      CodeStash - Online Snippet Management | My blog | MoXAML PowerToys | Mole 2010 - debugging made easier

      C 1 Reply Last reply
      0
      • P Pete OHanlon

        What type of swipe? Touching the screen? In mid air?

        I was brought up to respect my elders. I don't respect many people nowadays.
        CodeStash - Online Snippet Management | My blog | MoXAML PowerToys | Mole 2010 - debugging made easier

        C Offline
        C Offline
        charlieg
        wrote on last edited by
        #3

        There's my ignorance kicking in... what is a swipe? I've become familiar with a couple of gestures - found a good article on wiki: http://en.wikipedia.org/wiki/Multi-touch[^] So, in the context of a gesture, a swipe would be a scroll or flick, as you would expect on your smart phone to move to the next page.

        Charlie Gilley You're going to tell me what I want to know, or I'm going to beat you to death in your own house. "Where liberty dwells, there is my country." B. Franklin, 1783 “They who can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety.” BF, 1759

        P 1 Reply Last reply
        0
        • C charlieg

          There's my ignorance kicking in... what is a swipe? I've become familiar with a couple of gestures - found a good article on wiki: http://en.wikipedia.org/wiki/Multi-touch[^] So, in the context of a gesture, a swipe would be a scroll or flick, as you would expect on your smart phone to move to the next page.

          Charlie Gilley You're going to tell me what I want to know, or I'm going to beat you to death in your own house. "Where liberty dwells, there is my country." B. Franklin, 1783 “They who can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety.” BF, 1759

          P Offline
          P Offline
          Pete OHanlon
          wrote on last edited by
          #4

          I've been working heavily in Perceptual Computing for the last few months. A swipe is a single longer movement in any direction - in the case of PerC, this would be a swipe in mid air.

          I was brought up to respect my elders. I don't respect many people nowadays.
          CodeStash - Online Snippet Management | My blog | MoXAML PowerToys | Mole 2010 - debugging made easier

          C 1 Reply Last reply
          0
          • P Pete OHanlon

            I've been working heavily in Perceptual Computing for the last few months. A swipe is a single longer movement in any direction - in the case of PerC, this would be a swipe in mid air.

            I was brought up to respect my elders. I don't respect many people nowadays.
            CodeStash - Online Snippet Management | My blog | MoXAML PowerToys | Mole 2010 - debugging made easier

            C Offline
            C Offline
            charlieg
            wrote on last edited by
            #5

            Fair enough. But if you do receive this "event", the application responds to it in some fashion. In the case of a smart phone, they might "smoothly scroll the page". And it's at that level I'm living in at the moment. I'm curious how it's generally implemented... the smooth scrolling or page animation if you prefer.

            Charlie Gilley You're going to tell me what I want to know, or I'm going to beat you to death in your own house. "Where liberty dwells, there is my country." B. Franklin, 1783 “They who can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety.” BF, 1759

            P 1 Reply Last reply
            0
            • C charlieg

              Fair enough. But if you do receive this "event", the application responds to it in some fashion. In the case of a smart phone, they might "smoothly scroll the page". And it's at that level I'm living in at the moment. I'm curious how it's generally implemented... the smooth scrolling or page animation if you prefer.

              Charlie Gilley You're going to tell me what I want to know, or I'm going to beat you to death in your own house. "Where liberty dwells, there is my country." B. Franklin, 1783 “They who can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety.” BF, 1759

              P Offline
              P Offline
              Pete OHanlon
              wrote on last edited by
              #6

              Ah, I see what you're getting at. Well, it certainly depends on the development environment you are using. I use WPF, which provides inbuilt access to animation - I would simply hook into that. If you're using Win32, then you're going to have a lot more work because you're going to be hooked into GDI+.

              I was brought up to respect my elders. I don't respect many people nowadays.
              CodeStash - Online Snippet Management | My blog | MoXAML PowerToys | Mole 2010 - debugging made easier

              C 1 Reply Last reply
              0
              • P Pete OHanlon

                Ah, I see what you're getting at. Well, it certainly depends on the development environment you are using. I use WPF, which provides inbuilt access to animation - I would simply hook into that. If you're using Win32, then you're going to have a lot more work because you're going to be hooked into GDI+.

                I was brought up to respect my elders. I don't respect many people nowadays.
                CodeStash - Online Snippet Management | My blog | MoXAML PowerToys | Mole 2010 - debugging made easier

                C Offline
                C Offline
                charlieg
                wrote on last edited by
                #7

                I actually think I'll have to go below Win32. I have some algorithms worked up, and we'll see later this morning if the processor can keep up with what I need to do. I suspect that most implementations have hardware acceleration of some sort to aid the process.

                Charlie Gilley You're going to tell me what I want to know, or I'm going to beat you to death in your own house. "Where liberty dwells, there is my country." B. Franklin, 1783 “They who can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety.” BF, 1759

                P 1 Reply Last reply
                0
                • C charlieg

                  I actually think I'll have to go below Win32. I have some algorithms worked up, and we'll see later this morning if the processor can keep up with what I need to do. I suspect that most implementations have hardware acceleration of some sort to aid the process.

                  Charlie Gilley You're going to tell me what I want to know, or I'm going to beat you to death in your own house. "Where liberty dwells, there is my country." B. Franklin, 1783 “They who can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety.” BF, 1759

                  P Offline
                  P Offline
                  Pete OHanlon
                  wrote on last edited by
                  #8

                  They do, and that brings its own problems.

                  I was brought up to respect my elders. I don't respect many people nowadays.
                  CodeStash - Online Snippet Management | My blog | MoXAML PowerToys | Mole 2010 - debugging made easier

                  1 Reply Last reply
                  0
                  Reply
                  • Reply as topic
                  Log in to reply
                  • Oldest to Newest
                  • Newest to Oldest
                  • Most Votes


                  • Login

                  • Don't have an account? Register

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • World
                  • Users
                  • Groups