User Tag List

Results 1 to 10 of 10

Thread: Initial touch returning incorrect position value

  1. #1
    Clicker

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export ModuleUnicode Add-on
    mobichan's Avatar
    Join Date
    Oct 2007
    Location
    Buffalo, NY
    Posts
    3,310
    Mentioned
    28 Post(s)
    Tagged
    0 Thread(s)

    Initial touch returning incorrect position value

    I have found that if I set a var (InitialTouch) to XTouch (Touch 0) it is returning incorrect values at first. I am doing this with the mouse pointer in the PC debugger. My events look like:

    +A new touch has occurred, number 0
    - Set InitialTouch to XTouch(0)

    If I look in the debugger and see what values are printing out for the InitialTouch var, they tend to not be accurate. For example, I click the mouse pointer near the edge of my 480 wide window and it returns -1. A second click makes it return a more correct value like 470. This is making it nearly impossible to test any of my custom layer scrolling code as the values returned are incorrect.

    Can anyone confirm this?

    PS. I am using the Unicode runtime.

  2. #2
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export Module
    Francois's Avatar
    Join Date
    Jul 2006
    Location
    Montpellier, France
    Posts
    6,920
    Mentioned
    1 Post(s)
    Tagged
    1 Thread(s)
    This used to be a very old bug in the multiple touch object. It is corrected, I just tried it. I do not understand why you have an old version of the object...

  3. #3
    Clicker

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export ModuleUnicode Add-on
    mobichan's Avatar
    Join Date
    Oct 2007
    Location
    Buffalo, NY
    Posts
    3,310
    Mentioned
    28 Post(s)
    Tagged
    0 Thread(s)
    Francois: I want to correct this problem. What is my best solution? Should I completely unistall/reinstall MMF and all modules? And is there a way to preserve the extensions so I don't need to reinstall them all?

    I work on a dual monitor setup on Windows 7. Do you think that might cause any issues?

  4. #4
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export Module
    Francois's Avatar
    Join Date
    Jul 2006
    Location
    Montpellier, France
    Posts
    6,920
    Mentioned
    1 Post(s)
    Tagged
    1 Thread(s)

  5. #5
    Clicker

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export ModuleUnicode Add-on
    mobichan's Avatar
    Join Date
    Oct 2007
    Location
    Buffalo, NY
    Posts
    3,310
    Mentioned
    28 Post(s)
    Tagged
    0 Thread(s)
    I just noticed it needs to go in 2 places. /Extensions and /Data/runtime folders. Is that correct? I put it in both of those folders and there is no change to my problem when I run the PC debugger.

    If I can make a video, I will show you the problem.

  6. #6
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export Module
    Francois's Avatar
    Join Date
    Jul 2006
    Location
    Montpellier, France
    Posts
    6,920
    Mentioned
    1 Post(s)
    Tagged
    1 Thread(s)
    OK please

  7. #7
    Forum Moderator Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleMac Export ModuleSWF Export Module
    AndyH's Avatar
    Join Date
    Jun 2006
    Location
    UK
    Posts
    1,445
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    I have noticed this too, but only in the windows runtime. Works fine on the device.
    Andy H @ ovine.net
    Awful Jokes - a new cartoon every day: http://awful.ovine.net/
    Ovine's games: http://www.ovine.net

  8. #8
    Clicker

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export ModuleUnicode Add-on
    mobichan's Avatar
    Join Date
    Oct 2007
    Location
    Buffalo, NY
    Posts
    3,310
    Mentioned
    28 Post(s)
    Tagged
    0 Thread(s)
    Here is a video showing what I see in the PC debugger. Everytime I click in the video, the layer jumps to a new position. You can see a small blue detector at the tip of the mous cursor every time I click the mouse button.

    http://www.youtube.com/watch?v=Pa2dlPDK4BY

  9. #9
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export Module
    Francois's Avatar
    Join Date
    Jul 2006
    Location
    Montpellier, France
    Posts
    6,920
    Mentioned
    1 Post(s)
    Tagged
    1 Thread(s)
    You have to explain it to me, as what I see seems correct : the first time you click, the grave is moved under the mouse...
    What is wrong exactly in this video?

  10. #10
    Clicker

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export ModuleUnicode Add-on
    mobichan's Avatar
    Join Date
    Oct 2007
    Location
    Buffalo, NY
    Posts
    3,310
    Mentioned
    28 Post(s)
    Tagged
    0 Thread(s)
    The layer should only move when you click and drag. If you only click, the layer snaps to a position relative to the mouse. This is because the layer position is returning an incorrect value for one frame.

    Clicking should not move the layer until you drag. The behavior I want works on my ios device but NOT on the PC when using a mouse. That is the bug.

Similar Threads

  1. Virtual joystick position incorrect location on various devices
    By jfohl3r in forum Android Export Module Version 2.0
    Replies: 3
    Last Post: 11th March 2014, 03:09 AM
  2. JoyStick position and touch area mismatch
    By AndyH in forum Android Export Module Version 2.0
    Replies: 5
    Last Post: 2nd October 2012, 05:23 PM
  3. Changing position of touch joystick buttons
    By Renatos in forum iOS Export Module Version 2.0
    Replies: 5
    Last Post: 7th April 2012, 11:38 AM
  4. Incorrect scrolling
    By Daniel_M in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 8th June 2011, 12:14 AM
  5. viewport not working outside initial position?
    By integrality in forum Multimedia Fusion 2 - Technical Support
    Replies: 8
    Last Post: 5th July 2008, 09:55 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •