Detecting multiple touches in beta 5

I was using the example found in coding how tos for how to detect multiple touches which went something like this:
- (void)touchesChangedWithEvent:(UIEvent*)event
NSSet *touches = [event allTouches];
if (touches.count > 1)
// have multiple touches
So now they removed this method so i switched my touch detection to use:
- (void)touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event
I was expecting touches.count to show me how many touches there are but this always seems to equal 1. Am I missing something or is it a simulator bug, or sdk bug?

Well now I just feel dumb. Thanks for the quick response.

Similar Messages

  • Can a single HID report descriptor support multiple touch screens with different sizes?

    Hi Experts:
    I have a question for specifying touch monitor sizes in the HID report descriptor:
    Can ONE HID report descriptor support multiple touch monitors with different sizes ?
    Thanks in advance
    leo

    My screen shot is from AA9, and I have seen that the UI for AAX is vastly different, but...
    Choose Paper Source from Page Size should be the "one-touch" solution your looking for.
    In my test, my Konica-Minolta Bizhub failed to detect the proper paper trays, but Acrobat correctly spooled the pages.

  • Limits in multiple touches in iPhone OS

    Most people are familiar with the multiple touch interface in the iPhone OS. Using two fingers for pinching and rotating are common in many applications. Some applications even allow you to use three fingers. In developing my latest app called multiTouch the Game, I found a limitation in the iPhone SDK that is not documented anywhere.
    If you are not familiar with how to use touch routines, the 'iPhone OS Programming Guide' is a very good reference. Throughout the documentation, there are references to 'one or more fingers'. Through experimentation, I found that the 'one or more' to be actually 'up to five'.
    The rest of this document will describe what happens when you have more than five touches occurring at the same time.
    There are four main events that are used when a finger is touching the screen.
    - (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event;
    - (void)touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event;
    - (void)touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event;
    - (void)touchesCancelled:(NSSet *)touches withEvent:(UIEvent *)event
    Each one of these events contains a NSSet of UITouch objects. A single UITouch objects represents one finger. When an event is called, one or more UITouch objects may be sent. Depending on when a particular finger is in motion, the NSSet can contain up to five objects. As long as there is a change in finger status at least one of these events are called. If the user moves a finger before setting another down, then you will receive a Began, Moved, Began sequence. To determine when all the fingers have been lifted, you have to track how many are currently down, since the touchesEnded event is called when one or more fingers are lifted, which may or may not be all the fingers.
    When you place the sixth finger down, the touchesCancelled event is called. Once this occurs, then information about the other finger positions are lost. You cannot get any more Moved or Ended events for those fingers, even though they may still be touching the screen. The limit of five makes sense, since most people only have five fingers on one hand. According to the Apple documentation "the touch sequence is cancelled by a system event, such as an incoming phone call." Perhaps six fingers down triggers an exception. Regardless, you should handle the touchesCancelled event and reset whatever is necessary. It is interesting that even after the touchesCancelled is called, if you remove some of your fingers, but leave the others on, only the new touches will create an Event. The old fingers won't register, but they are still counted, since if you put more than five fingers back on, another Cancelled event is triggered.
    You can try out my 'multiTouch the Game' application on the App Store. It's free, and fun. I had hoped to use up to eight fingers, but had to limit it to five because of the OS restriction. Maybe in a future OS version the limit will increase.

    Paddler,
    Make sure that all the smart playlists are set for live updating.
    Also, if you are listening on your iPod, many updates will not be reflected until the next time you sync.

  • Detecting multiple key presses

    Using the code below I am trying to detect keypresses for a java applet which involves holding down of several keys at once. I have 2 problems, probably related. Firstly I can only detect 3-4 simultaneous keys being held down and secondly the keyPressed and released! events are continually fired while a key is held down not just when it was first pressed as you would think. I would like to be able to detect up to a maximum of 16 keys being held down at once, is this possible? I am working on a unix system in x-windows which I think accounts for the auto-repeat problem, but why am I having trouble detecting multiple simultaneous keys being held down?
    It there a boolean function I can call to check the state of given keys at a given time, that would be very useful?
    Any help is appreciated.
    Ian
    public void keyPressed(KeyEvent e) {
    int keyCode = e.getKeyCode();
    switch(keyCode){
    case java.awt.event.KeyEvent.VK_O: //o
         odown=true;
    break;
    case java.awt.event.KeyEvent.VK_P: //p
         pdown=true;
    break;
    case java.awt.event.KeyEvent.VK_Q: //q
         qdown=true;
    break;
    case java.awt.event.KeyEvent.VK_W: //w
         up=true;
    break;
    case java.awt.event.KeyEvent.VK_A: //a
         left=true;
    break;
    case java.awt.event.KeyEvent.VK_S: //s
         down=true;
    break;
    case java.awt.event.KeyEvent.VK_D: //d
         right=true;
    break;
    }//method keypressed
    public void keyTyped(KeyEvent e) {
    }//method keytyped
    public void keyReleased(KeyEvent e) {
    int keyCode = e.getKeyCode();
    switch(keyCode){
    case java.awt.event.KeyEvent.VK_O: //o
         odown=false;
    break;
    case java.awt.event.KeyEvent.VK_P: //p
         pdown=false;
    break;
    case java.awt.event.KeyEvent.VK_Q: //q
    qdown=false;
    break;
    case java.awt.event.KeyEvent.VK_W: //w
         up=false;
    break;
    case java.awt.event.KeyEvent.VK_A: //a
         left=false;
    break;
    case java.awt.event.KeyEvent.VK_S: //s
         down=false;
    break;
    case java.awt.event.KeyEvent.VK_D: //d
         right=false;
    break;
    }//method keyReleased

    Did you ever find a solution to this problem. I am experiencing a similar problem. I want to be able to disable the auto-repeat function of the keyboard, so that I can tell if the user is holding down the key, or pressing it several times.
    If you have found a solution please let me know at [email protected]
    Thanks,
    Ben Newton

  • Detecting multiple webcams

    There's a lot of old posts about this, but no solutions. Does anyone know a way to detect multiple webcams? It appears that JMF can't do this, but maybe someone has come up with another way? I'm trying to switch between 2 usb webcams.
    Thanks!

    What type of scanner do you have? Did it come with software or are you just using Image Capture? I've a Canon printer/scanner and use the supplied software to preview and select the item that I want to scan at any given time. Never used Image Capture before...
    Clinton

  • Detecting multiple people using Kinect audio source

    Hello,
    I'm working with the Kinect for windows v2 and I want to detect multiple people using the Kinect audio frame source.
    I mean that if multiple people are talking simultaneously while the Kinect is working, then I want the Kinect to be able to distinguish between the people according to their voices and to save each voice to a separate audio file. What do I need to do to
    the Kinect audio frame source to achieve that?
    thanks,
    Dror.

    The AudioBeamSubFrame will provide you access to the AudioBodyCorrelation object. You can review the AudioBasics sample to see how to get access to the AudioBeamSubFrame list.
    The API returns a collection of audio body correlations, in relation to the beam itself. You can use this to identify which enrolled tracked body is likely speaking. If Kinect is not tracking any bodies, this list will be empty. If one or more bodies is
    being tracked, this will return an ordered list containing body tracking IDs. The list is ordered based on the horizontal angle of the body relative to the current audio beam angle. The first body in the list is the one closest to the audio beam and the last
    is the furthest away from the audio beam.
    You will use the data against a list of tracked bodies you currently have. Refer to the body basics on how to get the tracking id's..
    Carmine Sirignano - MSFT

  • Detecting multiple images

    I just bought a macbook pro for the first time but am having some trouble with image capture with my scanner.  When I go to the option of detecting multiple items, it does not work.  All it does is scan one big scan instead of each individual item.  Any help?

    What type of scanner do you have? Did it come with software or are you just using Image Capture? I've a Canon printer/scanner and use the supplied software to preview and select the item that I want to scan at any given time. Never used Image Capture before...
    Clinton

  • Detecting multiple occurences of a value in data? (conundrum)

    Ok, if there are any good java utilities to help, this is where I'm going to find them...
    I'm trying to detect multiple occurences in a data set. Piling them into an array and using Array.sort() was a good start - I'm trying to find the max and min value of data that occurs more than once in the set.
    However, when the data set becomes much larger, I can't hold the set in memory. Is there an elegant solution to this? I'm at a loss to find a nice way of doing it. Its an interesting problem...
    Thanks,
    Steve

    Hi Steve!
    You can do this with a bit of programming yourself :-) If all values don't fit into your memory, just split them into smaller pieces. Do you need to sort out all duplicates or do you need to detect them only?
    The idea:
    Create a new ArrayList oder a Set of your choice and put some elements in it (a fixed number or just wait for an OutOfMemoryException to be thrown and catch this). Then sort the ArrayList and write it to a temporary file, store the file handle or name in a seperate list. Go on like this until all your data is sorted.
    After that, build one loop fetching just one value from each file and compare them - mainly this is mergesort. If duplicate values occur then, well, you have dupes :-)
    If needed I could look for the source...
    Cheers,
    Jan

  • My Canon MP Navigator scanner software no longer detects multiple photos on the platen - help!

    My Canon MP Navigator scanner software no longer detects multiple photos on the platen - help! I have scanned thousands of old photos over the last few months without problem. I scanned several full pages from photo albums right before this problem began. I wonder if there is some sort of memory which is not being cleared.  I have researched everything I can findto no avail. Any ideas?

    I'm not familiar with this software, but if your scanner is supported, you can achieve this task via Preview.app.
    Printer and scanner software available for download
    http://support.apple.com/kb/HT3669#gestetner
    I believe your model would fall under the MX880 series, and if that's correct, you'll be all set once you learn Preview's way of scanning.
    Best of luck!

  • Detecting multiple instances of same application on startup.

    How can I detect multiple instances of same application on startup? I would like to display a message to the user stating that the application is already running [and then close out].

    How can I detect multiple instances of same
    application on startup? I would like to display a
    message to the user stating that the application is
    already running [and then close out].Congratulations on being the bazillionth person to ask this kind of question without bothering to search the internet.

  • Multiple touches on one itunes account

    I have a Ipod touch and my husband wants to get one. I have a few questions.
    1. Can both touches uses 1 itune account?
    2. Can each touch select certain items to sync or is it all of the apps?
    3. If each had a separate account can each snyc to the other's touch?
    Thank you for your replys.

    Hello jyargeau,
    jyargeau wrote:
    I have a Ipod touch and my husband wants to get one. I have a few questions.
    1. Can both touches uses 1 itune account?
    Yes, they certainly can. There is no limit to the number of iPods you can have synced with one iTunes library or account.
    2. Can each touch select certain items to sync or is it all of the apps?
    Yes, you can set each of the iPods up to sync only certain apps. For more help on managing multiple iPods with one computer, I would check out this Apple support document. [How to use multiple iPods with one computer|http://support.apple.com/kb/HT1495]
    3. If each had a separate account can each snyc to the other's touch?
    Yes it is possible.
    B-rock

  • ITunes not detecting iPod Touch

    So I just got the 32GB iPod Touch today. 2nd Gen of course.
    Already had iTunes in my PC before this. So as how it should go, I plugged the iTouch in, it started to sync my music. Okay so that was normal. Then it asked to update it's firmware to 2.2. And I said yes.
    After updating it asked to install, but my songs were still syncing with the iTouch. I said yes to install the updates anyway. It started installing and suddenly my iTunes just crashed, saying some error and it couldn't install the latest firmware. Ever since then iTunes won't/can't detect my iTouch anymore but Windows can.
    The driver installed is 'Apple Recovery (iBoot) USB Driver', is that the right one? That's about as far as it goes now. And when I turn on the iTouch it just shows that picture of the USB and an arrow to connect to iTunes.
    Annoying enough, I've tried every single solution I could find on this forum. Even with the usbaapl.sys copy paste into inf folder, still doesn't work. Countless times reinstalling iTunes still doesn't work, reset the iTouch, still no hope. So if someone would please? I understand I'm not the only one going through this. I'm on a 64bit Vista, and YES I have iTunes 64bit version installed. I'm thinking if I should go to the Apple Shop to ask for help but I doubt they'd be of any service/knowledge of this. Really really frustrating. Please help, someone!?

    Joshes wrote:
    I'm thinking if I should go to the Apple Shop to ask for help but I doubt they'd be of any service/knowledge of this.
    Hello, 
    Why not? Apple staff their retail stores with 'Geniuses' for exactly this reason - all part of the Apple experience. You can reserve a booking online first:
    http://www.apple.com/retail/
    Alternatively have you tried working through some of the kbase articles. I would suggest that you totally remove all Apple software components and then re-install:
    http://support.apple.com/kb/HT1925
    Given that your issue followed a firmware update you may well need to Restore the iPod too:
    http://support.apple.com/kb/HT1414
    Let us know how you get on.
    mrtotes

  • Windows or itunes not detecting ipod touch

    my computer is not detecting my ipod, ive tried reinstalling itunes, restarting my computer and device and pretty much all of the troubleshooting solutions offered online but still it will not be detected, it has previously worked without fail its just in the last few days i have noticed it. the actual sync cable is fine and ive treid several.
    thanks

    - Have you tried everything here:
    iPhone, iPad, or iPod touch: Device not recognized in iTunes for Windows
    - Try anohter computer ot help determine if you have an iPod or computer problem
    - Make and appointment at the Genius Bar of an Apple store.

  • HT2305 windows media player wont detect ipod touch

    why wont windows media player detect my ipod touch

    Because iPods will only work with iTunes. Your computer only sees an iPod Touch as a digital camera. What are you trying to do with your iPod?

  • I tunes wont detect Ipod touch on laptop

    Just bought a new Ipod touch, the desktop will detect it but the laptop won't. I also have a Ipod nano, so yes I do have itunes on both.

    Check this...
    http://support.apple.com/kb/ts1567
    Basic troubleshooting steps  
    17" 2.2GHz i7 Quad-Core MacBook Pro  8G RAM  750G HD + OCZ Vertex 3 SSD Boot HD 
    Got problems with your Apple iDevice-like iPhone, iPad or iPod touch? Try Troubleshooting 101

Maybe you are looking for

  • Sender FILE/FTP adapter and filename

    Hi, I want to send a file with FTP and use the function APPEND. Is it possible to construct a unique filename, because the option "Add message ID" is not available when you choose APPEND. (I'm on SP9 but we want to patch op to 12 on a short notice) R

  • Merging data into clob

    Hi! Can someone tell me how can I merge data from one table in one clob? for example: I have table emp with columns id,name,iddept. Now I need those data in one clob column for each iddept. id name iddept 1 jack 01 2 joe 01 3 inna 02 4 blake 03and no

  • Current Enterprise version suppporting JPA & EJB3.0

    Hi - Could someone please tell me which production version of Oracle Application Server, Enterprise version, supports JPA and EJB3.0 and Java 5? We own an Enterprise license, but are only using the standalone 10.1.3.3 container for development and te

  • How to REEXECUTE last_query ?

    Hi ! How to to repeat last query using :system.last_query. This needs for filling the fields which is filled in database trigger. null

  • Hp webcam 101 driver for my laptop compaq presario cq60-110ee

    I just bought my laptop model Compaq Presario CQ60-110EE last Jan 1, 2009. I installed Windows Vista Premium and started to look for drivers at www.hp.com. Gladly, I found all the drivers except for my built-in webcam and bluetooth peripheral device.