User Tag List

Results 1 to 7 of 7

Thread: List of all current keys being pressed

  1. #1
    Clicker Multimedia Fusion 2 Developer

    Join Date
    Jul 2006
    Location
    Denmark
    Posts
    1,812
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    List of all current keys being pressed

    Hi.

    I've had this problem for quite a while, and I was wondering: Is there any way to get a list of all the keys that are currently being pressed inside MMF2?

    Thanks.

  2. #2
    Clicker Multimedia Fusion 2
    SEELE's Avatar
    Join Date
    Jul 2007
    Location
    Terra australis incognito
    Posts
    1,916
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: List of all current keys being pressed

    Hmm... yes; however depending on the keys you can generally only press 3-4 before there is map interference.

    as for actually implementing it, i would use the key and a list object:

    +on key is pressed
    -list add 'key name'

    +on key is not pressed
    +only one action when event loops
    -list deleteline (find string exact 'key name',flag 1)

  3. #3
    Clicker Multimedia Fusion 2 Developer

    Join Date
    Jul 2006
    Location
    Denmark
    Posts
    1,812
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: List of all current keys being pressed

    Yeah I figured that part out already SEELE, but how do you figure out what keys that are and what keys that aren't being pressed? You can't select specific keys because it has to work on all keys on a keyboard.

  4. #4
    No Products Registered

    Join Date
    Oct 2006
    Location
    Sweden
    Posts
    1,141
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: List of all current keys being pressed

    You can use the KEY object and use:
    * On Key number GetLastKeyVal( "Key Object" ) pressed
    and
    * On Key number GetLastKeyVal( "Key Object" ) released

  5. #5
    Clicker Multimedia Fusion 2 Developer

    Join Date
    Jul 2006
    Location
    Denmark
    Posts
    1,812
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: List of all current keys being pressed

    Okay I tried that, but sometimes at random, when I press multiple keys some of them don't get deleted D:

    Any ideas?

    edit: here's the file http://mechaware.net/keys.mfa

  6. #6
    Clicker Multimedia Fusion 2
    SEELE's Avatar
    Join Date
    Jul 2007
    Location
    Terra australis incognito
    Posts
    1,916
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: List of all current keys being pressed

    yes, that is because of the problem i specified earlier...

    Perhaps run tests on all the key which the list says are being pressed:

    +number of lines > 0
    -start loop("0"), number of lines (times)

    +on loop("0")
    +key is not being pressed ('get line (loopindex("0")+1')
    -list deleteline (find string exact ('get line (loopindex("0")+1'),flag 1)

  7. #7
    Clicker Multimedia Fusion 2 Developer

    Join Date
    Jul 2006
    Location
    Denmark
    Posts
    1,812
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: List of all current keys being pressed

    Yeah that would make sense. Thanks!

Similar Threads

  1. Is there a current list of extensions?
    By Gibbon in forum SWF/Flash Export Module Version 2.0
    Replies: 4
    Last Post: 12th March 2010, 02:52 PM
  2. Where can I get a current virus definition list?
    By MikeB in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 26th August 2009, 09:19 PM
  3. how to test if no keys are being pressed help
    By Oreo in forum Multimedia Fusion 2 - Technical Support
    Replies: 16
    Last Post: 21st August 2008, 08:57 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
  •