Gamepad left analog sticks and d-pads appear to be mapped to the North, West, East, and South keys by default. When using the Any macro and expecting arguments for d-pad directions it will fire twice -- once for the direction from the controller input and once for the normal direction string, as if the player were using the arrow keys.
Numbered Steps to Reproduce Problem:
1. Create a verb set up to accept string data with an Any macro.
2. Make it check if the string is equal to "GamepadUp" or "North"
3. It will fire twice, once for each.
Code Snippet (if applicable) to Reproduce Problem:
mob
verb
MenuNav(key as text)
set hidden = 1
if(key == "GamepadUp"||key == "North")
world << "This should run once"
Expected Results:
The verb should fire once.
Actual Results:
It fires twice, once with the string "GamepadUp" and once with the string "North."
Does the problem occur:
Every time? Or how often? Always
In other games? Probably
In other user accounts? Yes
On other computers? Yes
When does the problem NOT occur?
Never
Did the problem NOT occur in any earlier versions? If so, what was the last version that worked? (Visit http://www.byond.com/download/build to download old versions for testing.)
I don't know.
Workarounds:
Check for "North" as a string instead of "GamepadUp," same for all the other directions. This is not at all ideal because it means that I cannot offer keyboard customization for local multiplayer.