Gestures, jestures, and swipes - implementation fundamentals
-
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
-
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
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 -
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 easierThere'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
-
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
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 -
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 easierFair 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
-
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
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 -
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 easierI 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
-
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
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