Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Why does pressing any button while holding another one down automatically releases the former?

Say if I wanted to have a function attached to the A-key and another to the B-key, if I hold down the A-key I want it to execute function number 1 and when I release it function number 2, regardless of whether I press and release the B-key or not in the meantime (which has its own functions).

Currently, pressing the B-key while holding down the A-key, automatically releases the A-key.

Product Version: Not Selected
more ▼

asked May 21 '14 at 05:41 PM in Blueprint Scripting

avatar image

97 10 16 18

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

In general that would not be the behavior I would expect to see. You can test this by making a simple project with an empty level and binding A and B to input events in the level script and see that they behave independently.

I have to assume that what you're doing when pressing B is somehow causing a FlushPressedKeys to occur. Without knowing the specifics of what happens when B is pressed I can't make a better guess, but that's where I would start.

more ▼

answered May 21 '14 at 06:39 PM

avatar image

Marc Audy STAFF
2.2k 42 35 95

avatar image Thunderstorm May 22 '14 at 10:13 AM

Ah, sorry I just noticed that I disabled the input on the player in another blueprint and that's why it didn't register me releasing the A-key. It does not, in other words, release the A-key automatically.

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question