User Tag List

Results 1 to 6 of 6

Thread: Joypad Joystick 2: Testing order that buttons fire

  1. #1
    Clicker Multimedia Fusion 2 DeveloperiOS Export Module

    Join Date
    Jul 2006
    Location
    USA
    Posts
    658
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Joypad Joystick 2: Testing order that buttons fire

    I have a question about how the Joypad and Joystick 2 object handle button presses.

    I'm trying to set make a game that can determine which button is pressed first, but it seems there's a bias to either the first button pressed (for the Joystick 2 object) or the last button pressed (for the Joypad object).

    Example: Testing the Joystick 2 object.
    I've tested this by bringing the Frame Rate down to 2, then holding down Button 1 and then Button 2, and then a Counter displays "1" by using the "Last Button Pressed".

    Then I try holding down Button 2 and then Button 1, but the counter will display "1", as if Button 1 was hit first.

    Any ideas about why this happens?

    Or any ideas about how to code in MMF2 a more exact way of determining which Button is pressed first?

    Thanks, all.

  2. #2
    No Products Registered

    Join Date
    Jul 2006
    Posts
    379
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Joypad Joystick 2: Testing order that buttons fire

    I would do it like:
    Any button pressed
    + Only one event when event loops

    Set counter to last button pressed.

    This should work, otherwise there might be some bug.. I don't have MMF for some days so I can't test it.

  3. #3
    Clicker Multimedia Fusion 2 DeveloperiOS Export Module

    Join Date
    Jul 2006
    Location
    USA
    Posts
    658
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Joypad Joystick 2: Testing order that buttons fire

    Just tried adding "Only one event when event loops", but it still is doing the same thing.

    Must be inside the extension.

  4. #4
    Clicker Multimedia Fusion 2 DeveloperiOS Export Module

    Join Date
    Jul 2006
    Location
    USA
    Posts
    658
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Joypad Joystick 2: Testing order that buttons

    I just set up a new test to demonstrate what's happening.

    Any Button Pushed on Joystick2
    + Only one action when event loops => Add 1 to Counter.

    Every time a button is pushed, my counter should increase by 1.
    If I press two buttons one right after the other, my counter increases by 2 (because I hit 2 buttons).
    If I press two buttons at THE SAME TIME (as close as a human can get, anyways) then the Counter only increases by 1. As if it does not see two buttons being pressed.

    If it helps, I'm running my app at a frame rate of 500, just to make sure the program is looping pretty fast.

    Any thoughts?


  5. #5
    No Products Registered

    Join Date
    Jul 2006
    Posts
    379
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Joypad Joystick 2: Testing order that buttons

    Sorry, I can't do anything about when pressing buttons simultainiously, sice I don't get preciser joystick states from DirectX.

  6. #6
    Clicker Multimedia Fusion 2 DeveloperiOS Export Module

    Join Date
    Jul 2006
    Location
    USA
    Posts
    658
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Joypad Joystick 2: Testing order that buttons

    Got it. I wasn't sure if it was something you wrote, or something uncontrollable.

    Thanks.

Similar Threads

  1. Joypad and Joystick 2 object bug?
    By ASD in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 20th December 2012, 09:58 AM
  2. Beta 33 [Bug]- Fire Buttons do not work
    By geothefaust in forum Android Export Module Version 2.0
    Replies: 4
    Last Post: 28th August 2012, 05:05 PM
  3. [Bug/Problem] Fire Buttons 1/2
    By ProdigyX in forum Android Export Module Version 2.0
    Replies: 5
    Last Post: 8th January 2012, 12:50 AM
  4. player 1. Fire Buttons
    By Crls in forum SWF/Flash Export Module Version 2.0
    Replies: 3
    Last Post: 23rd April 2010, 01:22 PM
  5. Joypad and Joystick 2 problem
    By ASD in forum Extension Development
    Replies: 1
    Last Post: 1st April 2010, 09:31 AM

Posting Permissions

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